From 9916618889501b0fd27424bd2aaed016a321aca1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 10 Sep 2018 08:57:41 +0100 Subject: [PATCH] Send '111' as the default WHOX token, not '001', as some servers cut that down to '1' --- IRCLineHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 4749197e..1493ce77 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -210,7 +210,7 @@ class LineHandler(object): # on-join user list has finished def handle_366(self, event): - event["server"].send_whox(event["args"][1], "ahnrtu", "001") + event["server"].send_whox(event["args"][1], "ahnrtu", "111") # on user joining channel def join(self, event): @@ -542,7 +542,7 @@ class LineHandler(object): user.hostname = event["args"][3] # response to a WHOX command for user information, including account name def handle_354(self, event): - if event["args"][1] == "001": + if event["args"][1] == "111": username = event["args"][2] hostname = event["args"][3] nickname = event["args"][4]