aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-27 22:40:29 +0000
committerGravatar jesopo2019-01-27 22:40:29 +0000
commit16337fa16ebe8f48cbf73be0ac211a41dec3f724 (patch)
tree4f0342cd493e614b28eb39159fbcbeb6a6ca0060 /modules/line_handler.py
parentStrip `prefix_symbols` from PRIVMSG target, for e.g. 'PRIVMSG +#chan :hi' (diff)
signature
We need to pass a str to lstrip, not an array (line_handler.py)
Diffstat (limited to 'modules/line_handler.py')
-rw-r--r--modules/line_handler.py3
1 files changed, 2 insertions, 1 deletions
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: