Handle dangling spaces at the end of a NAMES response

This commit is contained in:
jesopo 2019-05-09 11:55:35 +01:00
parent 511a1836bb
commit 5dd019d79f

View file

@ -30,6 +30,11 @@ def handle_333(events, event):
def handle_353(event):
channel = event["server"].channels.get(event["args"][2])
nicknames = event["args"].get(3).split(" ")
# there can sometimes be a dangling space at the end of a 353
if nicknames and not nicknames[-1]:
nicknames.pop(-1)
for nickname in nicknames:
modes = set([])