Support a mode being removed from a channel, without an arg, that we weren't yet

aware of (src/IRCChannel.py)
This commit is contained in:
jesopo 2019-01-16 11:47:42 +00:00
parent 8ed89b3f31
commit aa40936ce6

View file

@ -64,7 +64,7 @@ class Channel(IRCObject.Object):
else: else:
self.modes[mode].add(arg.lower()) self.modes[mode].add(arg.lower())
def remove_mode(self, mode: str, arg: str=None): def remove_mode(self, mode: str, arg: str=None):
if not arg: if not arg and mode in self.modes:
del self.modes[mode] del self.modes[mode]
else: else:
if mode in self.server.prefix_modes: if mode in self.server.prefix_modes: