Add a permission to !channelunset and !channelget (set.py)

This commit is contained in:
jesopo 2019-01-30 08:10:41 +00:00
parent 9491a44295
commit bb84fc0291

View file

@ -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"])