Fix an issue in MODE handling
This commit is contained in:
parent
ac7b5c14f4
commit
facd9d69cb
1 changed files with 2 additions and 2 deletions
|
@ -212,13 +212,13 @@ def handle_MODE():
|
|||
channel.remove_mode(char)
|
||||
else:
|
||||
channel.add_mode(char)
|
||||
elif char in server.mode_prefixes.values():
|
||||
elif char in server.mode_prefixes.values() and len(args):
|
||||
nickname = args.pop(0)
|
||||
if remove:
|
||||
channel.remove_mode(char, nickname)
|
||||
else:
|
||||
channel.add_mode(char, nickname)
|
||||
else:
|
||||
elif len(args):
|
||||
args.pop(0)
|
||||
bot.events.on("received").on("mode").call(
|
||||
line=line, line_split=line_split, server=server, modes=modes,
|
||||
|
|
Loading…
Reference in a new issue