diff --git a/src/Config.py b/src/Config.py index fdc46c124..a1e6dfcc1 100644 --- a/src/Config.py +++ b/src/Config.py @@ -118,7 +118,18 @@ class Config(callbacks.Privmsg): else: irc.error('%r is not a valid configuration group.' % name) - def get(self, irc, msg, args): + def config(self, irc, msg, args): + """ [] + + If is given, sets the value of to . Otherwise, + returns the current value of . + """ + if len(args) >= 2: + self._set(irc, msg, args) + else: + self._get(irc, msg, args) + + def _get(self, irc, msg, args): """ Shows the current value of the configuration variable . @@ -132,7 +143,7 @@ class Config(callbacks.Privmsg): return irc.reply(str(wrapper)) - def set(self, irc, msg, args): + def _set(self, irc, msg, args): """ Sets the current value of the configuration variable to .