Handle dangling spaces at the end of a NAMES response
This commit is contained in:
parent
511a1836bb
commit
5dd019d79f
1 changed files with 5 additions and 0 deletions
|
@ -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([])
|
||||
|
||||
|
|
Loading…
Reference in a new issue