From 3c777934900edcf966a36b74068d84c3d7338c3d Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 20 Dec 2019 22:03:40 +0000 Subject: [PATCH] only look at 329 when it's a channel we know we are in --- src/core_modules/line_handler/channel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core_modules/line_handler/channel.py b/src/core_modules/line_handler/channel.py index 91150839..0def7828 100644 --- a/src/core_modules/line_handler/channel.py +++ b/src/core_modules/line_handler/channel.py @@ -123,8 +123,9 @@ def handle_324(events, event): args_str=args) def handle_329(event): - channel = event["server"].channels.get(event["line"].args[1]) - channel.creation_timestamp = int(event["line"].args[2]) + if event["line"].args[1] in event["server"].channels: + channel = event["server"].channels.get(event["line"].args[1]) + channel.creation_timestamp = int(event["line"].args[2]) def handle_477(timers, event): pass