From aa40936ce6e95b488863140072a32704f15df01e Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 16 Jan 2019 11:47:42 +0000 Subject: [PATCH] Support a mode being removed from a channel, without an arg, that we weren't yet aware of (src/IRCChannel.py) --- src/IRCChannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCChannel.py b/src/IRCChannel.py index aeb0b784..10f43edb 100644 --- a/src/IRCChannel.py +++ b/src/IRCChannel.py @@ -64,7 +64,7 @@ class Channel(IRCObject.Object): else: self.modes[mode].add(arg.lower()) def remove_mode(self, mode: str, arg: str=None): - if not arg: + if not arg and mode in self.modes: del self.modes[mode] else: if mode in self.server.prefix_modes: