mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 22:29:24 +01:00
sets aren't lists, and don't have .extend().
This commit is contained in:
parent
b6e98a577f
commit
7851ea4ef9
@ -70,7 +70,8 @@ class BadWords(callbacks.Privmsg):
|
|||||||
"<word> [<word> ...]"
|
"<word> [<word> ...]"
|
||||||
if ircdb.checkCapability(msg.prefix, 'admin'):
|
if ircdb.checkCapability(msg.prefix, 'admin'):
|
||||||
words = privmsgs.getArgs(args).split()
|
words = privmsgs.getArgs(args).split()
|
||||||
self.badwords.extend(words)
|
for word in words:
|
||||||
|
self.badwords.add(word)
|
||||||
self.makeRegexp()
|
self.makeRegexp()
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user