summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-14 17:40:50 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-14 19:14:56 +0200
commitce085bf4f4714d6073e297b599d39b42fcfe218f (patch)
tree3b9ca0e8ed92d166310c99d0cba35829582c5ac2
parent990113f8e745b810f91f5c8e52967d6c5d32c4df (diff)
downloadslixmpp-ce085bf4f4714d6073e297b599d39b42fcfe218f.tar.gz
slixmpp-ce085bf4f4714d6073e297b599d39b42fcfe218f.tar.bz2
slixmpp-ce085bf4f4714d6073e297b599d39b42fcfe218f.tar.xz
slixmpp-ce085bf4f4714d6073e297b599d39b42fcfe218f.zip
XEP-0047: announce the correct stanza type if message is selected.
-rw-r--r--slixmpp/plugins/xep_0047/ibb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0047/ibb.py b/slixmpp/plugins/xep_0047/ibb.py
index cbb13de5..de801877 100644
--- a/slixmpp/plugins/xep_0047/ibb.py
+++ b/slixmpp/plugins/xep_0047/ibb.py
@@ -119,7 +119,7 @@ class XEP_0047(BasePlugin):
iq['from'] = ifrom
iq['ibb_open']['block_size'] = block_size
iq['ibb_open']['sid'] = sid
- iq['ibb_open']['stanza'] = 'iq'
+ iq['ibb_open']['stanza'] = 'message' if use_messages else 'iq'
stream = IBBytestream(self.xmpp, sid, block_size,
iq['from'], iq['to'], window,