XEP-0047: announce the correct stanza type if message is selected.

This commit is contained in:
Emmanuel Gil Peyrot 2015-04-14 17:40:50 +02:00
parent 990113f8e7
commit ce085bf4f4

View file

@ -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,