Let's not try to send empty messages.

This commit is contained in:
Jeremy Fincher 2004-09-25 16:10:33 +00:00
parent 70111b5b06
commit 135c57c314

View File

@ -241,9 +241,15 @@ class Config(callbacks.Privmsg):
wrapper = getWrapper(name) wrapper = getWrapper(name)
if hasattr(wrapper, 'help'): if hasattr(wrapper, 'help'):
s = wrapper.help s = wrapper.help
if hasattr(wrapper, 'value') and not wrapper._private: if s:
s += ' (Current value: %s)' % wrapper if hasattr(wrapper, 'value') and not wrapper._private:
irc.reply(s) 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: else:
irc.error('%s has no help.' % name) irc.error('%s has no help.' % name)