diff options
| author | 2019-01-16 11:47:42 +0000 | |
|---|---|---|
| committer | 2019-01-16 11:47:42 +0000 | |
| commit | aa40936ce6e95b488863140072a32704f15df01e (patch) | |
| tree | ee7393e61723bfd0f3f9b81815378bc7563283d5 /src/IRCChannel.py | |
| parent | Add src/utils/_consts_256_color.py that should have been added 2 commits ago (diff) | |
| signature | ||
Support a mode being removed from a channel, without an arg, that we weren't yet
aware of (src/IRCChannel.py)
Diffstat (limited to 'src/IRCChannel.py')
| -rw-r--r-- | src/IRCChannel.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
