diff options
author | mathieui <mathieui@mathieui.net> | 2015-09-04 01:05:56 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-09-04 01:05:56 +0200 |
commit | 00a069872054b79fec1e29172df995e065485585 (patch) | |
tree | 63ba1062ade9bb2e1bfc0a9eaa1ecef32246f032 /slixmpp/plugins/xep_0152/reachability.py | |
parent | 804b23d390fe5733f4f2cbd1b588fbc9b7c42e21 (diff) | |
download | slixmpp-00a069872054b79fec1e29172df995e065485585.tar.gz slixmpp-00a069872054b79fec1e29172df995e065485585.tar.bz2 slixmpp-00a069872054b79fec1e29172df995e065485585.tar.xz slixmpp-00a069872054b79fec1e29172df995e065485585.zip |
Add timeout_callback to a bunch of plugins as a parameter
Diffstat (limited to 'slixmpp/plugins/xep_0152/reachability.py')
-rw-r--r-- | slixmpp/plugins/xep_0152/reachability.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/slixmpp/plugins/xep_0152/reachability.py b/slixmpp/plugins/xep_0152/reachability.py index 897269ee..e6d94b65 100644 --- a/slixmpp/plugins/xep_0152/reachability.py +++ b/slixmpp/plugins/xep_0152/reachability.py @@ -33,8 +33,9 @@ class XEP_0152(BasePlugin): def session_bind(self, jid): self.xmpp['xep_0163'].register_pep('reachability', Reachability) - def publish_reachability(self, addresses, options=None, - ifrom=None, callback=None, timeout=None): + def publish_reachability(self, addresses, options=None, ifrom=None, + callback=None, timeout=None, + timeout_callback=None): """ Publish alternative addresses where the user can be reached. @@ -65,9 +66,10 @@ class XEP_0152(BasePlugin): options=options, ifrom=ifrom, callback=callback, - timeout=timeout) + timeout=timeout, + timeout_callback=timeout_callback) - def stop(self, ifrom=None, callback=None, timeout=None): + def stop(self, ifrom=None, callback=None, timeout=None, timeout_callback=None): """ Clear existing user activity information to stop notifications. @@ -84,4 +86,5 @@ class XEP_0152(BasePlugin): node=Reachability.namespace, ifrom=ifrom, callback=callback, - timeout=timeout) + timeout=timeout, + timeout_callback=timeout_callback) |