diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-04-07 23:10:32 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-04-07 23:10:32 -0700 |
commit | ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65 (patch) | |
tree | d41aebdee8c6e6ed58850c7de006e00e405b9ddb /sleekxmpp/__init__.py | |
parent | 935ee4d14e80899fa45bb3d9296e123f642cc413 (diff) | |
download | slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.gz slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.bz2 slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.xz slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.zip |
replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree
Diffstat (limited to 'sleekxmpp/__init__.py')
-rw-r--r-- | sleekxmpp/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py index c788313d..773f7936 100644 --- a/sleekxmpp/__init__.py +++ b/sleekxmpp/__init__.py @@ -229,7 +229,8 @@ class ClientXMPP(basexmpp, XMLStream): def handler_start_session(self, xml): if self.authenticated: - response = self.send(self.makeIqSet(xml), self.makeIq(self.getId())) + iq = self.makeIqSet(xml) + response = iq.send() logging.debug("Established Session") self.sessionstarted = True self.event("session_start") |