mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Made sure to canonicalName the capabilities that are added.
This commit is contained in:
parent
2bc60c9dab
commit
bd800365ec
@ -95,7 +95,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
|
||||
|
||||
Sets the default capability to be allowed for any command.
|
||||
"""
|
||||
capability = privmsgs.getArgs(args)
|
||||
capability = callbacks.canonicalName(privmsgs.getArgs(args))
|
||||
conf.defaultCapabilities.add(capability)
|
||||
irc.reply(msg, conf.replySuccess)
|
||||
|
||||
@ -104,7 +104,7 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
|
||||
|
||||
Unsets the default capability for any command.
|
||||
"""
|
||||
capability = privmsgs.getArgs(args)
|
||||
capability = callbacks.canonicalName(privmsgs.getArgs(args))
|
||||
conf.defaultCapabilities.remove(capability)
|
||||
irc.reply(msg, conf.replySuccess)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user