3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

clientbot: treat 0 as an empty account name (for WHOX)

This fixes incorrect "X is logged in (on somenet) as 0" messages in WHOIS.
This commit is contained in:
James Lu 2017-10-25 16:00:24 -07:00
parent d0dff2c5ae
commit 544e078512

View File

@ -407,7 +407,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
"""
if account is None: # Ignore when account=None
return
elif account == '*': # This indicates logout
elif account in ('*', '0'): # No account
account = ''
if account != self.users[uid].services_account: