fix loop breaking on missing clid
This commit is contained in:
parent
78f82d64e5
commit
4d87558e0f
8
myTS3.py
8
myTS3.py
|
@ -4,7 +4,7 @@ TBD
|
||||||
|
|
||||||
__author__ = "Lukas Mahler"
|
__author__ = "Lukas Mahler"
|
||||||
__version__ = "0.0.0"
|
__version__ = "0.0.0"
|
||||||
__date__ = "07.10.2021"
|
__date__ = "11.10.2021"
|
||||||
__email__ = "m@hler.eu"
|
__email__ = "m@hler.eu"
|
||||||
__status__ = "Development"
|
__status__ = "Development"
|
||||||
|
|
||||||
|
@ -169,8 +169,12 @@ class TSbot:
|
||||||
|
|
||||||
if 'client_nickname' in event[0]:
|
if 'client_nickname' in event[0]:
|
||||||
displayname = event[0]['client_nickname']
|
displayname = event[0]['client_nickname']
|
||||||
else:
|
elif 'clid' in event[0]:
|
||||||
displayname = event[0]['clid']
|
displayname = event[0]['clid']
|
||||||
|
else:
|
||||||
|
self.pipeOut(event[0])
|
||||||
|
# displayname = "Unresolved"
|
||||||
|
continue # can't resolve no clid
|
||||||
|
|
||||||
self.pipeOut(f"Clientid [{displayname}] disconnected.")
|
self.pipeOut(f"Clientid [{displayname}] disconnected.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue