From 3016b98ce5773e5dc5bcb4540e35bed5015b402b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 16 Sep 2003 19:01:23 +0000 Subject: [PATCH] setdefaultcapability and unsetdefaultcapability were behind the times. --- src/OwnerCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OwnerCommands.py b/src/OwnerCommands.py index db23b09ed..81b446489 100644 --- a/src/OwnerCommands.py +++ b/src/OwnerCommands.py @@ -96,7 +96,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): Sets the default capability to be allowed for any command. """ capability = privmsgs.getArgs(args) - conf.defaultCapabilities[capability] = True + conf.defaultCapabilities.add(capability) irc.reply(msg, conf.replySuccess) def unsetdefaultcapability(self, irc, msg, args): @@ -105,7 +105,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): Unsets the default capability for any command. """ capability = privmsgs.getArgs(args) - del conf.defaultCapabilities[capability] + conf.defaultCapabilities.remove(capability) irc.reply(msg, conf.replySuccess) def settrace(self, irc, msg, args):