mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Let's not try to send empty messages.
This commit is contained in:
parent
70111b5b06
commit
135c57c314
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user