Don't crash when we try to send a message to channel we're not in
(line_handler.py)
This commit is contained in:
parent
15fc5f7124
commit
33cacbb904
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue