aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-02 11:08:03 +0000
committerGravatar jesopo2018-11-02 11:08:03 +0000
commit4fcb80b834bac471c4772827b0d5d16316390ae6 (patch)
tree57ca9d6e8b51144da19662f2542e55e86c896596 /modules
parentCheck if a url is a gallery first, 'event' -> 'data' typo, actually return from (diff)
signature
serverset identity-mechanism should be in modules/permissions.py
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py2
-rw-r--r--modules/permissions.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands.py b/modules/commands.py
index 83eb3cb1..f5517cd0 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -75,8 +75,6 @@ def _command_method_validate(s):
"help": "Set the command prefix used in this channel"})
@utils.export("serverset", {"setting": "command-prefix",
"help": "Set the command prefix used on this server"})
-@utils.export("serverset", {"setting": "identity-mechanism",
- "help": "Set the identity mechanism for this server"})
@utils.export("serverset", {"setting": "command-method",
"help": "Set the method used to respond to commands",
"validate": _command_method_validate})
diff --git a/modules/permissions.py b/modules/permissions.py
index 64bba006..873e346d 100644
--- a/modules/permissions.py
+++ b/modules/permissions.py
@@ -5,6 +5,8 @@ from src import ModuleManager, utils
REQUIRES_IDENTIFY = ("You need to be identified to use that command "
"(/msg %s register | /msg %s identify)")
+@utils.export("serverset", {"setting": "identity-mechanism",
+ "help": "Set the identity mechanism for this server"})
class Module(ModuleManager.BaseModule):
@utils.hook("new.user")
def new_user(self, event):