aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-14 08:36:41 +0000
committerGravatar jesopo2019-02-14 08:36:41 +0000
commit33cacbb904771c343bc0458b8f60f945a8e6f053 (patch)
treefd53e91f5848cdfa8abbc4100454252348e07980 /modules/line_handler.py
parentraise EventError when no results are found, to avoid double stderr write (you... (diff)
signature
Don't crash when we try to send a message to channel we're not in
(line_handler.py)
Diffstat (limited to 'modules/line_handler.py')
-rw-r--r--modules/line_handler.py2
1 files changed, 2 insertions, 0 deletions
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