Made sure to canonicalName the capabilities that are added.

This commit is contained in:
Jeremy Fincher 2003-09-17 07:27:11 +00:00
parent 2bc60c9dab
commit bd800365ec

View File

@ -95,7 +95,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 = callbacks.canonicalName(privmsgs.getArgs(args))
conf.defaultCapabilities.add(capability) conf.defaultCapabilities.add(capability)
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
@ -104,7 +104,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
Unsets the default capability for any command. Unsets the default capability for any command.
""" """
capability = privmsgs.getArgs(args) capability = callbacks.canonicalName(privmsgs.getArgs(args))
conf.defaultCapabilities.remove(capability) conf.defaultCapabilities.remove(capability)
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)