From 135c57c31440bf20136d9d3cd0c708d073b3ef19 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 25 Sep 2004 16:10:33 +0000 Subject: [PATCH] Let's not try to send empty messages. --- src/Config.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Config.py b/src/Config.py index d24ca6836..869b81d05 100644 --- a/src/Config.py +++ b/src/Config.py @@ -241,9 +241,15 @@ class Config(callbacks.Privmsg): wrapper = getWrapper(name) if hasattr(wrapper, 'help'): s = wrapper.help - if hasattr(wrapper, 'value') and not wrapper._private: - s += ' (Current value: %s)' % wrapper - irc.reply(s) + if s: + if hasattr(wrapper, 'value') and not wrapper._private: + s += ' (Current value: %s)' % wrapper + irc.reply(s) + else: + irc.reply('That configuration group exists, but seems to have ' + 'no help. Try "config list %s" to see if it has ' + 'any children values.') + else: irc.error('%s has no help.' % name)