Send '111' as the default WHOX token, not '001', as some servers cut that down

to '1'
This commit is contained in:
jesopo 2018-09-10 08:57:41 +01:00
parent 78171f7504
commit 9916618889

View file

@ -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]