'def on_cap_new' -> 'def on_cap_ls' (resume.py)

This commit is contained in:
jesopo 2019-02-09 12:27:13 +00:00
parent 1e6e030d6f
commit a23e46ddbf

View file

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