mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
commands.wrap update
This commit is contained in:
parent
4b86bf5eaf
commit
31d71b1a8e
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user