Use context directly for mode change

This commit is contained in:
Vgr E. Barry 2017-01-12 12:44:34 -05:00
parent 81c96f4a56
commit 4a02943a6e

View File

@ -166,7 +166,7 @@ def connect_callback():
mode = hooks.Features["PREFIX"]["+"]
pending = []
for user in channels.Main.modes.get(mode, ()):
pending.append(("-" + mode, user.nick))
pending.append(("-" + mode, user))
accumulator.send(pending)
next(accumulator, None)