summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-10-01 16:27:55 -0700
committerLance Stout <lancestout@gmail.com>2012-10-01 16:27:55 -0700
commit657102e938aeb385cd44daf3cc213a40d58c36fa (patch)
tree75691dd1ff76db43131d1d4b0b029ea054b3b964 /sleekxmpp/basexmpp.py
parent94488fa2ea4dac7ff6fce20621d2e80e700f6299 (diff)
downloadslixmpp-657102e938aeb385cd44daf3cc213a40d58c36fa.tar.gz
slixmpp-657102e938aeb385cd44daf3cc213a40d58c36fa.tar.bz2
slixmpp-657102e938aeb385cd44daf3cc213a40d58c36fa.tar.xz
slixmpp-657102e938aeb385cd44daf3cc213a40d58c36fa.zip
Update legacy auth to be used outside of stream features.
Also, add detection of legacy XMPP version.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py4
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.