From 9124f84e2547ec346e7e9a2adf2bec7a639c27d9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 21 May 2019 10:42:40 +0100 Subject: Strip "+" from the start of `port` after checking if it is present --- modules/admin.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/admin.py') diff --git a/modules/admin.py b/modules/admin.py index 22c03314..40a9720b 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -111,6 +111,7 @@ class Module(ModuleManager.BaseModule): alias = event["args_split"][0] hostname, sep, port = event["args_split"][1].partition(":") tls = port.startswith("+") + port = port.lstrip("+") if not hostname or not port or not port.isdigit(): raise utils.EventError("Please provide :[+]") -- cgit v1.3.1-10-gc9f91