From 33cacbb904771c343bc0458b8f60f945a8e6f053 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 14 Feb 2019 08:36:41 +0000 Subject: Don't crash when we try to send a message to channel we're not in (line_handler.py) --- modules/line_handler.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/line_handler.py') diff --git a/modules/line_handler.py b/modules/line_handler.py index df459f9c..8a017ed7 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -469,6 +469,8 @@ class Module(ModuleManager.BaseModule): channel = None if target[0] in event["server"].channel_types: + if not target in event["server"].channels: + return channel = event["server"].channels.get(target) action = False -- cgit v1.3.1-10-gc9f91