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.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
import supybot.ircdb as ircdb
|
import supybot.ircdb as ircdb
|
||||||
|
from supybot.commands import *
|
||||||
import supybot.plugins as plugins
|
import supybot.plugins as plugins
|
||||||
from supybot.commands import wrap
|
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
@ -202,7 +202,7 @@ class Success(callbacks.Privmsg):
|
|||||||
irc.error('There is no success #%s.' % id)
|
irc.error('There is no success #%s.' % id)
|
||||||
change = wrap(change, ['user', 'channeldb',
|
change = wrap(change, ['user', 'channeldb',
|
||||||
('id', 'success'), 'regexpReplacer'])
|
('id', 'success'), 'regexpReplacer'])
|
||||||
|
|
||||||
|
|
||||||
def stats(self, irc, msg, args, channel):
|
def stats(self, irc, msg, args, channel):
|
||||||
"""[<channel>]
|
"""[<channel>]
|
||||||
|
@ -176,8 +176,8 @@ class Time(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
format = self.registryValue('format')
|
format = self.registryValue('format')
|
||||||
irc.reply(time.strftime(format, time.localtime(seconds)))
|
irc.reply(time.strftime(format, time.localtime(seconds)))
|
||||||
time = wrap(time, [additional('channel'), additional('nonInt'),
|
time = wrap(time, [optional('channel'), optional('nonInt'),
|
||||||
optional('float', TIME.time)])
|
additional('float', TIME.time)])
|
||||||
|
|
||||||
def elapsed(self, irc, msg, args, seconds):
|
def elapsed(self, irc, msg, args, seconds):
|
||||||
"""<seconds>
|
"""<seconds>
|
||||||
|
Loading…
Reference in New Issue
Block a user