diff options
| -rw-r--r-- | modules/line_handler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/line_handler.py b/modules/line_handler.py index e72af3fb..9c3adf6e 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -410,6 +410,11 @@ class Module(ModuleManager.BaseModule): message_split = message.split(" ") target = event["args"][0] + # 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())) + channel = None if target[0] in event["server"].channel_types: channel = event["server"].channels.get(event["args"][0]) |
