Don't crash when we try to send a message to channel we're not in

(line_handler.py)
This commit is contained in:
jesopo 2019-02-14 08:36:41 +00:00
parent 15fc5f7124
commit 33cacbb904

View file

@ -469,6 +469,8 @@ class Module(ModuleManager.BaseModule):
channel = None channel = None
if target[0] in event["server"].channel_types: if target[0] in event["server"].channel_types:
if not target in event["server"].channels:
return
channel = event["server"].channels.get(target) channel = event["server"].channels.get(target)
action = False action = False