We should be using CAP.available()
as it's not a string
This commit is contained in:
parent
0dbf44a681
commit
f52fd2adc4
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
@utils.hook("received.cap.ls")
|
||||
def on_cap_ls(self, event):
|
||||
if CAP in event["capabilities"]:
|
||||
if CAP.available(event["capabilities"]):
|
||||
cap = CAP.copy()
|
||||
cap.on_ack(lambda: self._cap_ack(event["server"]))
|
||||
return cap
|
||||
|
|
Loading…
Reference in a new issue