Fix the uses of stanza.reply()

This is relying on the stanzas being copied for each handler. We no
longer do that for performance reasons, so instead of editing the copy
in-place, stanza.reply() now returns a new stanza.
This commit is contained in:
mathieui
2015-02-12 12:17:01 +01:00
parent 8b36e918e8
commit f6b3a0c6cf
19 changed files with 83 additions and 84 deletions

View File

@@ -127,7 +127,7 @@ class XEP_0054(BasePlugin):
if isinstance(vcard, Iq):
vcard.send()
else:
iq.reply()
iq = iq.reply()
iq.append(vcard)
iq.send()
elif iq['type'] == 'set':