mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
gitflow-hotfix-stash: deconThreadError
This commit is contained in:
@@ -27,8 +27,8 @@ end)
|
||||
|
||||
function Admin.kick(player,by_player,reason)
|
||||
player = Game.get_player(player)
|
||||
reason = Admin.create_reason(reason,by_player_name)
|
||||
local by_player_name = Game.get_player(by_player) and Game.get_player(by_player).name or '<server>'
|
||||
reason = Admin.create_reason(reason,by_player_name)
|
||||
if Sync then Sync.emit_embedded{
|
||||
title='Player Kick',
|
||||
color=Color.to_hex(defines.textcolor.high),
|
||||
|
||||
@@ -457,7 +457,8 @@ function Server._thread:error(err)
|
||||
_return = true
|
||||
else
|
||||
self:close() -- no matter what happens next this thread will be closed
|
||||
error('Thread Error (no handler): '..err)
|
||||
local name = self.name or self.uuid
|
||||
error('Thread Error (no handler) on <'..name..'>: '..err)
|
||||
end
|
||||
return _return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user