From 51d05670bdb4090e7c5af8506184e5f0ae3f85d6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 16 Aug 2004 21:43:59 +0000 Subject: [PATCH] Let's show the current value in COnfig.help. --- src/Config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Config.py b/src/Config.py index 72e60d056..71452e810 100644 --- a/src/Config.py +++ b/src/Config.py @@ -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)