diff options
| author | 2019-02-14 08:36:41 +0000 | |
|---|---|---|
| committer | 2019-02-14 08:36:41 +0000 | |
| commit | 33cacbb904771c343bc0458b8f60f945a8e6f053 (patch) | |
| tree | fd53e91f5848cdfa8abbc4100454252348e07980 /modules/line_handler.py | |
| parent | raise 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.py | 2 |
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 |
