Let's show the current value in COnfig.help.

This commit is contained in:
Jeremy Fincher 2004-08-16 21:43:59 +00:00
parent 7b75d47095
commit 51d05670bd

View File

@ -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)