mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
setdefaultcapability and unsetdefaultcapability were behind the times.
This commit is contained in:
parent
b95985c3aa
commit
3016b98ce5
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user