mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-03 01:39:23 +01:00
Remove get/set, changed it to just config.
This commit is contained in:
parent
3de0f0e6f2
commit
f0097c2257
@ -118,7 +118,18 @@ class Config(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
irc.error('%r is not a valid configuration group.' % name)
|
irc.error('%r is not a valid configuration group.' % name)
|
||||||
|
|
||||||
def get(self, irc, msg, args):
|
def config(self, irc, msg, args):
|
||||||
|
"""<name> [<value>]
|
||||||
|
|
||||||
|
If <value> is given, sets the value of <name> to <value>. Otherwise,
|
||||||
|
returns the current value of <name>.
|
||||||
|
"""
|
||||||
|
if len(args) >= 2:
|
||||||
|
self._set(irc, msg, args)
|
||||||
|
else:
|
||||||
|
self._get(irc, msg, args)
|
||||||
|
|
||||||
|
def _get(self, irc, msg, args):
|
||||||
"""<name>
|
"""<name>
|
||||||
|
|
||||||
Shows the current value of the configuration variable <name>.
|
Shows the current value of the configuration variable <name>.
|
||||||
@ -132,7 +143,7 @@ class Config(callbacks.Privmsg):
|
|||||||
return
|
return
|
||||||
irc.reply(str(wrapper))
|
irc.reply(str(wrapper))
|
||||||
|
|
||||||
def set(self, irc, msg, args):
|
def _set(self, irc, msg, args):
|
||||||
"""<name> <value>
|
"""<name> <value>
|
||||||
|
|
||||||
Sets the current value of the configuration variable <name> to <value>.
|
Sets the current value of the configuration variable <name> to <value>.
|
||||||
|
Loading…
Reference in New Issue
Block a user