mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Let's show the current value in COnfig.help.
This commit is contained in:
parent
7b75d47095
commit
51d05670bd
@ -229,7 +229,10 @@ class Config(callbacks.Privmsg):
|
||||
name = self._canonicalizeName(name)
|
||||
wrapper = getWrapper(name)
|
||||
if hasattr(wrapper, 'help'):
|
||||
irc.reply(wrapper.help)
|
||||
s = wrapper.help
|
||||
if not wrapper._private:
|
||||
s += ' (Current value: %s)' % wrapper()
|
||||
irc.reply(s)
|
||||
else:
|
||||
irc.error('%s has no help.' % name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user