mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 08:15:42 +00:00
Small fixes
This commit is contained in:
parent
cdeacc16bf
commit
f1ab07d49a
@ -303,10 +303,10 @@ class Core:
|
||||
ev.call_event("onServerStopped")
|
||||
await ev.call_async_event("onServerStopped")
|
||||
await self.__gracefully_kick()
|
||||
if config.Options['use_lua']:
|
||||
ev.call_event("_lua_plugins_unload")
|
||||
await ev.call_async_event("_plugins_unload")
|
||||
ev.call_event("_lua_plugins_unload")
|
||||
self.run = False
|
||||
self.log.info(i18n.stop)
|
||||
if config.WebAPI["enabled"]:
|
||||
asyncio.run(self.web_stop())
|
||||
# exit(0)
|
||||
|
@ -66,8 +66,6 @@ class TCPServer:
|
||||
if _client.nick == client.nick and _client.guest == client.guest:
|
||||
await _client.kick(i18n.core_player_kick_stale)
|
||||
|
||||
client.log.info(i18n.core_player_set_id.format(client.pid))
|
||||
|
||||
allow = True
|
||||
reason = i18n.core_player_kick_no_allowed_default_reason
|
||||
|
||||
@ -90,6 +88,7 @@ class TCPServer:
|
||||
else:
|
||||
self.log.info(i18n.core_identifying_okay)
|
||||
await self.Core.insert_client(client)
|
||||
client.log.info(i18n.core_player_set_id.format(client.pid))
|
||||
|
||||
return True, client
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user