mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-10-22 16:27:38 +00:00
Minor get_client update
This commit is contained in:
1 parent
d6021ddc2d
commit
1fac1d5ae9
1 file changed
+2
@@ -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