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_0279 | |
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_0279')
-rw-r--r-- | slixmpp/plugins/xep_0279/ipcheck.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0279/ipcheck.py b/slixmpp/plugins/xep_0279/ipcheck.py index b0c0a6ca..e8cea46f 100644 --- a/slixmpp/plugins/xep_0279/ipcheck.py +++ b/slixmpp/plugins/xep_0279/ipcheck.py @@ -31,9 +31,11 @@ class XEP_0279(BasePlugin): def plugin_end(self): self.xmpp['xep_0030'].del_feature(feature='urn:xmpp:sic:0') - def check_ip(self, ifrom=None, block=True, timeout=None, callback=None): + def check_ip(self, ifrom=None, block=True, timeout=None, callback=None, + timeout_callback=None): iq = self.xmpp.Iq() iq['type'] = 'get' iq['from'] = ifrom iq.enable('ip_check') - return iq.send(block=block, timeout=timeout, callback=callback) + return iq.send(block=block, timeout=timeout, callback=callback, + timeout_callback=timeout_callback) |