From a3223c7c27176b1d9cc1ee8af6d2c486f5ab2f25 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 13 Oct 2004 15:21:09 +0000 Subject: [PATCH] Update to use new commands.wrap. One test ("time %Y") is still failing, but it works when actually using the bot. --- plugins/Time.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Time.py b/plugins/Time.py index 12b2b514b..4c2f2f8e9 100644 --- a/plugins/Time.py +++ b/plugins/Time.py @@ -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): """