Add _synced #1

This commit is contained in:
2023-08-17 21:25:47 +03:00
parent 42e4a8e05e
commit a06c48dca5
3 changed files with 10 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ class Core:
return None
if cid is not None:
if cid == -1:
return [i for i in self.clients if i is not None]
return [i for i in self.clients if i is not None and i.synced]
return self.clients_by_id.get(cid)
if nick:
return self.clients_by_nick.get(nick)