Removed the reset command. We can nest default, if we want.

This commit is contained in:
Jeremy Fincher 2004-01-21 19:13:43 +00:00
parent 8cc8bba9e0
commit ac8bb2ed08

View File

@ -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>