changed code to avoid a crash when some ircd will show a mode being removed from someone that didn't have it in the first place.
This commit is contained in:
parent
d0be88ef3b
commit
842de08b47
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Channel(object):
|
||||||
if not args:
|
if not args:
|
||||||
del self.modes[mode]
|
del self.modes[mode]
|
||||||
else:
|
else:
|
||||||
self.modes[mode].remove(args.lower())
|
self.modes[mode].discard(args.lower())
|
||||||
if not len(self.modes[mode]):
|
if not len(self.modes[mode]):
|
||||||
del self.modes[mode]
|
del self.modes[mode]
|
||||||
self.bot.events.on("mode").on("channel").call(
|
self.bot.events.on("mode").on("channel").call(
|
||||||
|
|
Loading…
Reference in a new issue