From 544e07851218d0022c3472a498475cb8310adbb7 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 25 Oct 2017 16:00:24 -0700 Subject: [PATCH] clientbot: treat 0 as an empty account name (for WHOX) This fixes incorrect "X is logged in (on somenet) as 0" messages in WHOIS. --- protocols/clientbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 7262a7d..1d710f8 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -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: