mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Disallow mutating commands in Aka/Alias/Scheduler by default.
It's too easy to abuse these commands when owners don't know they have to set the appropriate anticapabilities; so let's set the anticapabilities by default.
This commit is contained in:
parent
dba0ae3771
commit
bf7db13f01
@ -1175,7 +1175,13 @@ class DefaultCapabilities(SpaceSeparatedListOfCapabilities):
|
|||||||
self.value.add('-owner')
|
self.value.add('-owner')
|
||||||
|
|
||||||
conf.registerGlobalValue(conf.supybot, 'capabilities',
|
conf.registerGlobalValue(conf.supybot, 'capabilities',
|
||||||
DefaultCapabilities(['-owner', '-admin', '-trusted'], """These are the
|
DefaultCapabilities([
|
||||||
|
'-owner', '-admin', '-trusted',
|
||||||
|
'-aka.add', '-aka.set', '-aka.remove',
|
||||||
|
'-alias.add', '-alias.remove',
|
||||||
|
'-scheduler.add', '-scheduler.remove',
|
||||||
|
],
|
||||||
|
"""These are the
|
||||||
capabilities that are given to everyone by default. If they are normal
|
capabilities that are given to everyone by default. If they are normal
|
||||||
capabilities, then the user will have to have the appropriate
|
capabilities, then the user will have to have the appropriate
|
||||||
anti-capability if you want to override these capabilities; if they are
|
anti-capability if you want to override these capabilities; if they are
|
||||||
|
Loading…
Reference in New Issue
Block a user