Allow passing contexts to Channel.mode

This commit is contained in:
Vgr E. Barry 2016-12-19 12:34:45 -05:00
parent 9014d5c35c
commit 898a7107ca

View File

@ -154,7 +154,7 @@ class Channel(IRCContext):
mode, target = change
if len(mode) < 2:
mode = "+" + mode
params.append((mode, target))
params.append((mode, "{0}".format(target)))
params.sort(key=lambda x: x[0][0]) # sort by prefix
while params: