From 4a4a0915b7bd6fc599af270e6ec4edd955b79dfe Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 19 Nov 2004 23:44:15 +0000 Subject: [PATCH] Converted to commands.wrap. These are all untested, so someone should test them at some point. --- plugins/Later.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Later.py b/plugins/Later.py index beb63d279..5f3d18ebe 100644 --- a/plugins/Later.py +++ b/plugins/Later.py @@ -46,8 +46,8 @@ import time import supybot.log as log import supybot.conf as conf import supybot.utils as utils +from supybot.commands import * import supybot.ircutils as ircutils -import supybot.privmsgs as privmsgs import supybot.registry as registry import supybot.callbacks as callbacks @@ -123,14 +123,13 @@ class Later(callbacks.Privmsg): self.wildcards.append(nick) self._flushNotes() - def tell(self, irc, msg, args): + def tell(self, irc, msg, args, nick, text): """ Tells the next time is in seen. can contain wildcard characters, and the first matching nick will be given the note. """ - (nick, text) = privmsgs.getArgs(args, required=2) if ircutils.strEqual(nick, irc.nick): irc.error('I can\'t send notes to myself.') return @@ -139,6 +138,7 @@ class Later(callbacks.Privmsg): irc.replySuccess() except ValueError: irc.error('That person\'s message queue is already full.') + tell = wrap(tell, ['nick', 'text']) def doPrivmsg(self, irc, msg): try: