diff options
| author | 2020-01-26 02:49:20 +0000 | |
|---|---|---|
| committer | 2020-01-26 02:49:20 +0000 | |
| commit | 6c510d2332785319af4e1750653b79c495dfdbbf (patch) | |
| tree | 2ffbe40b8ef6fac8a2d6a7812cebff0f004b22c3 /src | |
| parent | we need a fresh mutable `args` copy for each spec (diff) | |
| signature | ||
add rchannel spec arg to !access
Diffstat (limited to 'src')
| -rw-r--r-- | src/core_modules/channel_access.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core_modules/channel_access.py b/src/core_modules/channel_access.py index d9988246..bd259eda 100644 --- a/src/core_modules/channel_access.py +++ b/src/core_modules/channel_access.py @@ -42,8 +42,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.access") @utils.kwarg("require_mode", "high") - @utils.spec("!'list !<nickname>ouser") - @utils.spec("!'add,remove,set !<nickname>ouser !<permissions>string") + @utils.spec("!<#channel>r~channel !'list !<nickname>ouser") + @utils.spec("!<#channel>r~channel !'add,remove,set !<nickname>ouser " + "!<permissions>string") def access(self, event): subcommand = event["spec"][0].lower() target = event["spec"][1] |
