mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +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:
parent
d0dff2c5ae
commit
544e078512
@ -407,7 +407,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
"""
|
"""
|
||||||
if account is None: # Ignore when account=None
|
if account is None: # Ignore when account=None
|
||||||
return
|
return
|
||||||
elif account == '*': # This indicates logout
|
elif account in ('*', '0'): # No account
|
||||||
account = ''
|
account = ''
|
||||||
|
|
||||||
if account != self.users[uid].services_account:
|
if account != self.users[uid].services_account:
|
||||||
|
Loading…
Reference in New Issue
Block a user