mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Removed the reset command. We can nest default, if we want.
This commit is contained in:
parent
8cc8bba9e0
commit
ac8bb2ed08
@ -135,20 +135,6 @@ class Config(callbacks.Privmsg):
|
||||
wrapper = getWrapper(name)
|
||||
irc.reply(wrapper.help)
|
||||
|
||||
def reset(self, irc, msg, args):
|
||||
"""<name>
|
||||
|
||||
Resets the configuration variable <name> to its original value.
|
||||
"""
|
||||
name = privmsgs.getArgs(args)
|
||||
capability = getCapability(name)
|
||||
if ircdb.checkCapability(msg.prefix, capability):
|
||||
wrapper = getWrapper(name)
|
||||
wrapper.reset()
|
||||
irc.replySuccess()
|
||||
else:
|
||||
irc.errorNoCapability(capability)
|
||||
|
||||
def default(self, irc, msg, args):
|
||||
"""<name>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user