From cccbfd1d3ea88ad3f445ce48034588a9ad31c7ad Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 17 Sep 2004 16:27:03 +0000 Subject: [PATCH] Add a missing config option. --- plugins/Time.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/Time.py b/plugins/Time.py index 8ca2bf5e5..7cbd45df2 100644 --- a/plugins/Time.py +++ b/plugins/Time.py @@ -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: