From a23e46ddbff5eb58a7db1c68d3c65305b6c29773 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 9 Feb 2019 12:27:13 +0000 Subject: [PATCH] 'def on_cap_new' -> 'def on_cap_ls' (resume.py) --- modules/resume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/resume.py b/modules/resume.py index 25f3f9d1..baabb441 100644 --- a/modules/resume.py +++ b/modules/resume.py @@ -7,7 +7,7 @@ class Module(ModuleManager.BaseModule): return server.connection_params.args.get("resume-token", [None, None]) @utils.hook("received.cap.ls") - def on_cap_new(self, event): + def on_cap_ls(self, event): username, token = self._get_token(event["server"]) if CAP in event["capabilities"] and (not username or not token): event["server"].queue_capability(CAP)