mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-10 18:06:01 +00:00
Minor get_client update
This commit is contained in:
@@ -50,6 +50,8 @@ class Core:
|
||||
ev.register_event("_get_player", lambda x: self.get_client(**x['kwargs']))
|
||||
|
||||
def get_client(self, cid=None, nick=None):
|
||||
if cid is None and nick is None:
|
||||
return None
|
||||
if cid is not None:
|
||||
if cid == -1:
|
||||
return [i for i in self.clients if i is not None]
|
||||
|
||||
Reference in New Issue
Block a user