From 4fcb80b834bac471c4772827b0d5d16316390ae6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 2 Nov 2018 11:08:03 +0000 Subject: serverset identity-mechanism should be in modules/permissions.py --- modules/commands.py | 2 -- modules/permissions.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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): -- cgit v1.3.1-10-gc9f91