From f0097c2257163fc351c4f85b92f68188061c757e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 30 Jan 2004 05:51:54 +0000 Subject: [PATCH] Remove get/set, changed it to just config. --- src/Config.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 .