From 5fa442c8a5172f1168b8560cf3ee8ce23d16f8b4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 5 Nov 2018 13:25:51 +0000 Subject: [PATCH] `info` does not exist in on_cap_new context in modules/sts.py --- modules/sts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/sts.py b/modules/sts.py index 5f01827b..c12ee01f 100644 --- a/modules/sts.py +++ b/modules/sts.py @@ -32,6 +32,8 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.cap.new") def on_cap_new(self, event): if "sts" in event["capabilities"] and event["server"].tls: + info = utils.parse.keyvalue(event["capabilities"]["sts"], + delimiter=",") if event["server"].tls: self._change_duration(event["server"], info)