serverset identity-mechanism should be in modules/permissions.py
This commit is contained in:
parent
18d055bb9e
commit
4fcb80b834
2 changed files with 2 additions and 2 deletions
|
@ -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})
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue