Add a missing config option.

This commit is contained in:
James Vega 2004-09-17 16:27:03 +00:00
parent 597819a971
commit cccbfd1d3e

View File

@ -58,6 +58,12 @@ def configure(advanced):
from supybot.questions import expect, anything, something, yn
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):
def seconds(self, irc, msg, args):
@ -150,7 +156,6 @@ class Time(callbacks.Privmsg):
irc.reply(time.strftime(format, time.localtime(seconds)))
Class = Time
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: