mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +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)
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user