'def on_cap_new' -> 'def on_cap_ls' (resume.py)
This commit is contained in:
parent
1e6e030d6f
commit
a23e46ddbf
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue