serverset identity-mechanism should be in modules/permissions.py

This commit is contained in:
jesopo 2018-11-02 11:08:03 +00:00
parent 18d055bb9e
commit 4fcb80b834
2 changed files with 2 additions and 2 deletions

View file

@ -75,8 +75,6 @@ def _command_method_validate(s):
"help": "Set the command prefix used in this channel"}) "help": "Set the command prefix used in this channel"})
@utils.export("serverset", {"setting": "command-prefix", @utils.export("serverset", {"setting": "command-prefix",
"help": "Set the command prefix used on this server"}) "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", @utils.export("serverset", {"setting": "command-method",
"help": "Set the method used to respond to commands", "help": "Set the method used to respond to commands",
"validate": _command_method_validate}) "validate": _command_method_validate})

View file

@ -5,6 +5,8 @@ from src import ModuleManager, utils
REQUIRES_IDENTIFY = ("You need to be identified to use that command " REQUIRES_IDENTIFY = ("You need to be identified to use that command "
"(/msg %s register | /msg %s identify)") "(/msg %s register | /msg %s identify)")
@utils.export("serverset", {"setting": "identity-mechanism",
"help": "Set the identity mechanism for this server"})
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@utils.hook("new.user") @utils.hook("new.user")
def new_user(self, event): def new_user(self, event):