commands.wrap update

This commit is contained in:
James Vega 2004-10-17 18:14:18 +00:00
parent 4b86bf5eaf
commit 31d71b1a8e
2 changed files with 4 additions and 4 deletions

View File

@ -43,8 +43,8 @@ import supybot.dbi as dbi
import supybot.conf as conf
import supybot.utils as utils
import supybot.ircdb as ircdb
from supybot.commands import *
import supybot.plugins as plugins
from supybot.commands import wrap
import supybot.registry as registry
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
@ -202,7 +202,7 @@ class Success(callbacks.Privmsg):
irc.error('There is no success #%s.' % id)
change = wrap(change, ['user', 'channeldb',
('id', 'success'), 'regexpReplacer'])
def stats(self, irc, msg, args, channel):
"""[<channel>]

View File

@ -176,8 +176,8 @@ class Time(callbacks.Privmsg):
else:
format = self.registryValue('format')
irc.reply(time.strftime(format, time.localtime(seconds)))
time = wrap(time, [additional('channel'), additional('nonInt'),
optional('float', TIME.time)])
time = wrap(time, [optional('channel'), optional('nonInt'),
additional('float', TIME.time)])
def elapsed(self, irc, msg, args, seconds):
"""<seconds>