mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +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
|
||||
@ -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>]
|
||||
|
@ -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