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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user