mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Add a missing config option.
This commit is contained in:
parent
597819a971
commit
cccbfd1d3e
@ -58,6 +58,12 @@ def configure(advanced):
|
|||||||
from supybot.questions import expect, anything, something, yn
|
from supybot.questions import expect, anything, something, yn
|
||||||
conf.registerPlugin('Time', True)
|
conf.registerPlugin('Time', True)
|
||||||
|
|
||||||
|
conf.registerPlugin('Time')
|
||||||
|
conf.registerChannelValue(conf.supybot.plugins.Time, 'format',
|
||||||
|
registry.String(str(conf.supybot.humanTimestampFormat()), """Determines the
|
||||||
|
format string for timestamps. Refer to the Python documentation for the
|
||||||
|
time module to see what formats are accepted. If you set this variable to
|
||||||
|
the empty string, the timestamp will not be shown."""))
|
||||||
|
|
||||||
class Time(callbacks.Privmsg):
|
class Time(callbacks.Privmsg):
|
||||||
def seconds(self, irc, msg, args):
|
def seconds(self, irc, msg, args):
|
||||||
@ -150,7 +156,6 @@ class Time(callbacks.Privmsg):
|
|||||||
irc.reply(time.strftime(format, time.localtime(seconds)))
|
irc.reply(time.strftime(format, time.localtime(seconds)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Class = Time
|
Class = Time
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user