Converted to the new commands.wrap.

This commit is contained in:
Jeremy Fincher 2004-10-12 16:29:27 +00:00
parent 477ec6ead7
commit 67d8cf082a

View File

@ -231,7 +231,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
self.pendingNickChanges[irc.getRealIrc()] = irc
else:
irc.reply(irc.nick)
nick = wrap(nick, ['?nick'])
nick = wrap(nick, [additional('nick')])
def part(self, irc, msg, args):
"""<channel> [<channel> ...] [<reason>]
@ -342,7 +342,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
expires += time.time()
ircdb.ignores.add(hostmask, expires)
irc.replySuccess()
ignore = wrap(ignore, ['hostmask', ('?int', 0)])
ignore = wrap(ignore, ['hostmask', additional('int', 0)])
def unignore(self, irc, msg, args, hostmask):
"""<hostmask|nick>