diff options
| author | 2019-01-30 11:28:38 +0000 | |
|---|---|---|
| committer | 2019-01-30 11:28:38 +0000 | |
| commit | fc39f8f9fc38ca61d4671f16f1bdbebe17654480 (patch) | |
| tree | a452ed95a7c2ec8959e072b39c5c1e2998ff39ba | |
| parent | We 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)
| -rw-r--r-- | modules/channel_access.py | 2 |
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) |
