Add a permission
to !channelunset and !channelget (set.py)
This commit is contained in:
parent
9491a44295
commit
bb84fc0291
1 changed files with 2 additions and 1 deletions
|
@ -117,6 +117,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
:help: Get a specified channel setting for the current channel
|
:help: Get a specified channel setting for the current channel
|
||||||
:usage: <setting>
|
:usage: <setting>
|
||||||
:require_mode: o
|
:require_mode: o
|
||||||
|
:permission: channelsetoverride
|
||||||
"""
|
"""
|
||||||
setting = event["args_split"][0]
|
setting = event["args_split"][0]
|
||||||
self._get(event, setting, " for %s" % event["target"].name,
|
self._get(event, setting, " for %s" % event["target"].name,
|
||||||
|
@ -168,6 +169,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
:help: Unset a specified user setting
|
:help: Unset a specified user setting
|
||||||
:usage: <setting>
|
:usage: <setting>
|
||||||
:require_mode: high
|
:require_mode: high
|
||||||
:permission: channelunsetoverride
|
:permission: channelsetoverride
|
||||||
"""
|
"""
|
||||||
self._unset(event, event["args_split"][0], "channelset", event["user"])
|
self._unset(event, event["args_split"][0], "channelset", event["user"])
|
||||||
|
|
Loading…
Reference in a new issue