aboutsummaryrefslogtreecommitdiff
path: root/modules/sts.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-05 12:59:40 +0000
committerGravatar jesopo2018-11-05 12:59:40 +0000
commit19864a7e136786aa12ce0e4c20447d16c27cfc98 (patch)
treeced87448096d558df58c6a384ae3ded22bc52790 /modules/sts.py
parentAdd support for IRCv3's STS (diff)
signature
`duration` does not exist in the context of _change_duration
Diffstat (limited to 'modules/sts.py')
-rw-r--r--modules/sts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sts.py b/modules/sts.py
index 07ad2738..98da6581 100644
--- a/modules/sts.py
+++ b/modules/sts.py
@@ -13,7 +13,7 @@ class Module(ModuleManager.BaseModule):
port = event["server"].port
if "port" in info:
port = int(info["port"])
- self._set_policy(server, port, duration)
+ self._set_policy(server, port, info["duration"])
@utils.hook("received.cap.ls")
def on_cap_ls(self, event):