aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_access.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-30 11:28:38 +0000
committerGravatar jesopo2019-01-30 11:28:38 +0000
commitfc39f8f9fc38ca61d4671f16f1bdbebe17654480 (patch)
treea452ed95a7c2ec8959e072b39c5c1e2998ff39ba /modules/channel_access.py
parentWe should be using `potential_hook` until we've decided on a valid hook (diff)
signature
We need to turn `channel_arg` in to an int (channel_access.py)
Diffstat (limited to 'modules/channel_access.py')
-rw-r--r--modules/channel_access.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/channel_access.py b/modules/channel_access.py
index 121e4718..555a2a3c 100644
--- a/modules/channel_access.py
+++ b/modules/channel_access.py
@@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule):
else:
return "You do not have permission to do this"
else:
- channel_arg_index = event["hook"].get_kwarg("channel_arg")
+ channel_arg_index = int(event["hook"].get_kwarg("channel_arg"))
channel_name = event["args_split"][channel_arg_index]
if channel_name in event["server"].channels:
channel = event["server"].channels.get(channel_name)