Update to use new commands.wrap. One test ("time %Y") is still failing, but

it works when actually using the bot.
This commit is contained in:
James Vega 2004-10-13 15:21:09 +00:00
parent 85780543aa
commit a3223c7c27

View File

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