aboutsummaryrefslogtreecommitdiff
path: root/IRCChannel.py
diff options
context:
space:
mode:
Diffstat (limited to 'IRCChannel.py')
-rw-r--r--IRCChannel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRCChannel.py b/IRCChannel.py
index 666ebfcd..54a174db 100644
--- a/IRCChannel.py
+++ b/IRCChannel.py
@@ -37,7 +37,7 @@ class Channel(object):
if not args:
del self.modes[mode]
else:
- self.modes[mode].remove(args.lower())
+ self.modes[mode].discard(args.lower())
if not len(self.modes[mode]):
del self.modes[mode]
self.bot.events.on("mode").on("channel").call(