From e6468e51da19d0dbde331be2d11d63f5df0c76d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Sat, 17 Apr 2004 14:43:09 +0000 Subject: [PATCH] Updated wizard and a tiny docstring update. (ooooooooooh :p) --- plugins/LogToIrc.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/LogToIrc.py b/plugins/LogToIrc.py index 528f579d3..6480c8942 100644 --- a/plugins/LogToIrc.py +++ b/plugins/LogToIrc.py @@ -31,7 +31,7 @@ ### """ -Allows for sending the bot's logging output to a channel or nick. +Allows for sending the bot's logging output to channels or users. """ __revision__ = "$Id$" @@ -187,15 +187,19 @@ conf.registerGlobalValue(conf.supybot.plugins.LogToIrc, 'notice', def configure(advanced): from questions import something, anything, yn, output - target = '' - while not target: + output("""Here you can set which channels and who the bot has to send log + messages to. Note that by default in order to log to a channel + the channel has to have mode +s set. Logging to a user requires + the user to have the Owner capability.""") + targets = '' + while not targets: try: - target = anything('Which channel would you like to send log ' - 'messages too?') + targets = anything('Which channels or users would you like to ' + 'send log messages to?') conf.supybot.plugins.LogToIrc.target.set(target) except registry.InvalidRegistryValue, e: output(str(e)) - target = '' + targets = '' colorized = yn('Would you like these messages to be colored?') conf.supybot.plugins.LogToIrc.colorized.setValue(colorized) if advanced: