setdefaultcapability and unsetdefaultcapability were behind the times.

This commit is contained in:
Jeremy Fincher 2003-09-16 19:01:23 +00:00
parent b95985c3aa
commit 3016b98ce5

View File

@ -96,7 +96,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
Sets the default capability to be allowed for any command. Sets the default capability to be allowed for any command.
""" """
capability = privmsgs.getArgs(args) capability = privmsgs.getArgs(args)
conf.defaultCapabilities[capability] = True conf.defaultCapabilities.add(capability)
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
def unsetdefaultcapability(self, irc, msg, args): def unsetdefaultcapability(self, irc, msg, args):
@ -105,7 +105,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
Unsets the default capability for any command. Unsets the default capability for any command.
""" """
capability = privmsgs.getArgs(args) capability = privmsgs.getArgs(args)
del conf.defaultCapabilities[capability] conf.defaultCapabilities.remove(capability)
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
def settrace(self, irc, msg, args): def settrace(self, irc, msg, args):