aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-22 08:34:52 +0100
committerGravatar jesopo2019-05-22 08:34:52 +0100
commitf52fd2adc4a4d53b9c36ae056162b26a8ede6604 (patch)
treeaf761cbe67825df581b312025aea2ae6b46a2ec3
parentDefault taget_str in send.stdout/send.stderr to target.name (diff)
signature
We should be using `CAP.available()` as it's not a string
-rw-r--r--modules/resume.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/resume.py b/modules/resume.py
index b1984d0f..d7e5935b 100644
--- a/modules/resume.py
+++ b/modules/resume.py
@@ -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