mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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)
|
name = self._canonicalizeName(name)
|
||||||
wrapper = getWrapper(name)
|
wrapper = getWrapper(name)
|
||||||
if hasattr(wrapper, 'help'):
|
if hasattr(wrapper, 'help'):
|
||||||
irc.reply(wrapper.help)
|
s = wrapper.help
|
||||||
|
if not wrapper._private:
|
||||||
|
s += ' (Current value: %s)' % wrapper()
|
||||||
|
irc.reply(s)
|
||||||
else:
|
else:
|
||||||
irc.error('%s has no help.' % name)
|
irc.error('%s has no help.' % name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user