mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-23 00:30:26 +00:00
[~] 0.4.5 > 0.4.6
[+] Recreate config (if empty) [+] Hidden config [!] FIX rl [!] Update getting loop [-] core_player_set_id [~] Update copyrights [~] Minor
This commit is contained in:
@@ -94,9 +94,8 @@ class TCPServer:
|
||||
await client.kick(i18n.core_player_kick_server_full)
|
||||
return False, client
|
||||
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))
|
||||
client.log.info(i18n.core_identifying_okay)
|
||||
|
||||
return True, client
|
||||
|
||||
@@ -137,7 +136,8 @@ class TCPServer:
|
||||
try:
|
||||
ip = writer.get_extra_info('peername')[0]
|
||||
if self.rl.is_banned(ip):
|
||||
self.rl.notify(ip, writer)
|
||||
await self.rl.notify(ip, writer)
|
||||
writer.close()
|
||||
break
|
||||
data = await reader.read(1)
|
||||
if not data:
|
||||
|
||||
Reference in New Issue
Block a user