diff options
author | Lance Stout <lancestout@gmail.com> | 2012-04-25 13:55:46 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-04-25 13:55:46 -0700 |
commit | 2eeaf4d80c7c0cef17701914382911665d6fb621 (patch) | |
tree | cc1ae7883b2b6003a04275f3048142c828f1f7a6 /sleekxmpp/xmlstream/stanzabase.py | |
parent | 4d89d26a1c98f1f20e8e9943615e5d2984410849 (diff) | |
download | slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.tar.gz slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.tar.bz2 slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.tar.xz slixmpp-2eeaf4d80c7c0cef17701914382911665d6fb621.zip |
Use provided stanza ID.
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 2 |
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): |