diff options
author | Lance Stout <lancestout@gmail.com> | 2012-10-15 15:00:23 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-10-15 15:00:23 -0700 |
commit | cebc798e72fcc1a53b6962d26ec6bad121a953c1 (patch) | |
tree | dca8d4d541e68c7e5d963729d6e1c824cca08e6c /sleekxmpp/basexmpp.py | |
parent | e2e8c4b5dcca3dddfda6e60850a6754018e8f60d (diff) | |
parent | 9f6decdbc1dbb791006e590906bd94021b71495f (diff) | |
download | slixmpp-cebc798e72fcc1a53b6962d26ec6bad121a953c1.tar.gz slixmpp-cebc798e72fcc1a53b6962d26ec6bad121a953c1.tar.bz2 slixmpp-cebc798e72fcc1a53b6962d26ec6bad121a953c1.tar.xz slixmpp-cebc798e72fcc1a53b6962d26ec6bad121a953c1.zip |
Merge branch 'stream_features'
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r-- | sleekxmpp/basexmpp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 55250751..a1969e34 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -212,6 +212,10 @@ class BaseXMPP(XMLStream): self.stream_version = xml.get('version', '') self.peer_default_lang = xml.get('{%s}lang' % XML_NS, None) + if not self.is_component and not self.stream_version: + log.warning('Legacy XMPP 0.9 protocol detected.') + self.event('legacy_protocol') + def process(self, *args, **kwargs): """Initialize plugins and begin processing the XML stream. |