From 16337fa16ebe8f48cbf73be0ac211a41dec3f724 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 27 Jan 2019 22:40:29 +0000 Subject: We need to pass a str to lstrip, not an array (line_handler.py) --- modules/line_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index 9c3adf6e..adb335fd 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -413,7 +413,8 @@ class Module(ModuleManager.BaseModule): # strip prefix_symbols from the start of target, for when people use # e.g. 'PRIVMSG +#channel :hi' which would send a message to only # voiced-or-above users - target = target.lstrip(list(event["server"].prefix_symbols.keys())) + prefix_symbols = "".join(event["server"].prefix_symbols.keys()) + target = target.lstrip(prefix_symbols) channel = None if target[0] in event["server"].channel_types: -- cgit v1.3.1-10-gc9f91