summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0092
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-16 06:28:12 +0800
committerLance Stout <lancestout@gmail.com>2011-03-16 06:45:06 +0800
commit5635265203712650981c479867cdcece01fa6d61 (patch)
tree4c30274041f14dfd957206c224089a0f7978ee00 /sleekxmpp/plugins/xep_0092
parent45ccb313560fbfbc0354ebac9116ecb9ff963a47 (diff)
downloadslixmpp-5635265203712650981c479867cdcece01fa6d61.tar.gz
slixmpp-5635265203712650981c479867cdcece01fa6d61.tar.bz2
slixmpp-5635265203712650981c479867cdcece01fa6d61.tar.xz
slixmpp-5635265203712650981c479867cdcece01fa6d61.zip
Avoid infinite loop on version result
We need to check if type="get". otherwise we will send our version when we will receive the version of the remote entity, and thus going in an infinite loop.
Diffstat (limited to 'sleekxmpp/plugins/xep_0092')
-rw-r--r--sleekxmpp/plugins/xep_0092/version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0092/version.py b/sleekxmpp/plugins/xep_0092/version.py
index fb3671e4..46bb27f7 100644
--- a/sleekxmpp/plugins/xep_0092/version.py
+++ b/sleekxmpp/plugins/xep_0092/version.py
@@ -42,7 +42,7 @@ class xep_0092(base_plugin):
self.xmpp.register_handler(
Callback('Software Version',
- StanzaPath('iq/software_version'),
+ StanzaPath('iq@=get/software_version'),
self._handle_version))
register_stanza_plugin(Iq, Version)