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:
parent
d0dff2c5ae
commit
544e078512
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user