info does not exist in on_cap_new context in modules/sts.py

This commit is contained in:
jesopo 2018-11-05 13:25:51 +00:00
parent 061a4ede23
commit 5fa442c8a5

View file

@ -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)