Add "prefixed-commands" to !channelset

This commit is contained in:
jesopo 2018-11-12 23:00:51 +00:00
parent 0c8678d44f
commit fad4715b5c

View file

@ -94,6 +94,9 @@ def _command_method_validate(s):
@utils.export("channelset", {"setting": "commands", @utils.export("channelset", {"setting": "commands",
"help": "Disable/enable responding to commands in-channel", "help": "Disable/enable responding to commands in-channel",
"validate": utils.bool_or_none}) "validate": utils.bool_or_none})
@utils.export("channelset", {"setting": "prefixed-commands",
"help": "Disable/enable responding to prefixed commands in-channel",
"validate": utils.bool_or_none})
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@utils.hook("new.user|channel") @utils.hook("new.user|channel")
def new(self, event): def new(self, event):