summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-04-25 13:55:46 -0700
committerLance Stout <lancestout@gmail.com>2012-04-25 13:55:46 -0700
commit2eeaf4d80c7c0cef17701914382911665d6fb621 (patch)
treecc1ae7883b2b6003a04275f3048142c828f1f7a6 /sleekxmpp
parent4d89d26a1c98f1f20e8e9943615e5d2984410849 (diff)
downloadslixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.tar.gz
slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.tar.bz2
slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.tar.xz
slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.zip
Use provided stanza ID.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 2f6416d5..8a4f07ae 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -1176,6 +1176,8 @@ class StanzaBase(ElementBase):
self['to'] = sto
if sfrom is not None:
self['from'] = sfrom
+ if sid is not None:
+ self['id'] = sid
self.tag = "{%s}%s" % (self.namespace, self.name)
def set_type(self, value):