diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/channel_op.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py index c79f67b4..1e0f28ea 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -432,7 +432,8 @@ class Module(ModuleManager.BaseModule): if target in server.channels: channel = server.channels.get(target) temp_key = "~%s" % mode - channel.mode_lists[mode] = channel.mode_lists.pop(temp_key, []) + if temp_key in channel.mode_lists: + channel.mode_lists[mode] = channel.mode_lists.pop(temp_key) @utils.hook("received.mode.channel") def channel_mode_lists(self, event): |
