sets aren't lists, and don't have .extend().

This commit is contained in:
Jeremy Fincher 2003-03-22 08:14:36 +00:00
parent b6e98a577f
commit 7851ea4ef9

View File

@ -70,7 +70,8 @@ class BadWords(callbacks.Privmsg):
"<word> [<word> ...]"
if ircdb.checkCapability(msg.prefix, 'admin'):
words = privmsgs.getArgs(args).split()
self.badwords.extend(words)
for word in words:
self.badwords.add(word)
self.makeRegexp()
irc.reply(msg, conf.replySuccess)
return