diff options
| author | 2018-11-05 18:21:43 +0000 | |
|---|---|---|
| committer | 2018-11-05 18:21:43 +0000 | |
| commit | e26df7556a927522889f9fae7fb336d66bd01cb8 (patch) | |
| tree | bcac9f67b266fabf009249b3235907878a6081ac /modules/sts.py | |
| parent | Add missing import of json in utils.irc (diff) | |
| signature | ||
Check that a server's STS policy has a `duration` before doing
rescheduling-on-disconnect
Diffstat (limited to 'modules/sts.py')
| -rw-r--r-- | modules/sts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sts.py b/modules/sts.py index 0d76e396..fa361604 100644 --- a/modules/sts.py +++ b/modules/sts.py @@ -68,6 +68,6 @@ class Module(ModuleManager.BaseModule): @utils.hook("server.disconnect") def on_disconnect(self, event): sts_policy = self._get_policy(event["server"]) - if sts_policy: + if sts_policy and sts_policy["duration"]: sts_policy["from"] = time.time() self._set_policy(event["server"], sts_policy) |
