commands.wrap update

This commit is contained in:
James Vega 2004-10-15 12:26:38 +00:00
parent a9635f7547
commit a5557cb636

View File

@ -45,7 +45,7 @@ import supybot.conf as conf
import supybot.utils as utils import supybot.utils as utils
import supybot.ircdb as ircdb import supybot.ircdb as ircdb
import supybot.ircmsgs as ircmsgs import supybot.ircmsgs as ircmsgs
from supybot.commands import wrap from supybot.commands import *
import supybot.ircutils as ircutils import supybot.ircutils as ircutils
import supybot.privmsgs as privmsgs import supybot.privmsgs as privmsgs
import supybot.registry as registry import supybot.registry as registry
@ -164,7 +164,7 @@ class BadWords(privmsgs.CapabilityCheckingPrivmsg):
set.update(words) set.update(words)
self.words.setValue(set) self.words.setValue(set)
irc.replySuccess() irc.replySuccess()
add = wrap(add, ['something+']) add = wrap(add, [many('text')])
def remove(self, irc, msg, args, words): def remove(self, irc, msg, args, words):
"""<word> [<word> ...] """<word> [<word> ...]
@ -176,7 +176,7 @@ class BadWords(privmsgs.CapabilityCheckingPrivmsg):
set.discard(word) set.discard(word)
self.words.setValue(set) self.words.setValue(set)
irc.replySuccess() irc.replySuccess()
remove = wrap(remove, ['something+']) remove = wrap(remove, [many('text')])
Class = BadWords Class = BadWords