summaryrefslogtreecommitdiff
path: root/sleekxmpp/__init__.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-06-16 11:59:55 +0000
committerNathan Fritz <fritzy@netflint.net>2009-06-16 11:59:55 +0000
commita9262c4e0a4c23f0ef596feda968dfa25c04b3d2 (patch)
tree59156b0b5117b032e8f07157f6faa739d1a471f5 /sleekxmpp/__init__.py
parent5fbf0f84d7ddc90f7bb036617ec55e18e9067f5f (diff)
downloadslixmpp-a9262c4e0a4c23f0ef596feda968dfa25c04b3d2.tar.gz
slixmpp-a9262c4e0a4c23f0ef596feda968dfa25c04b3d2.tar.bz2
slixmpp-a9262c4e0a4c23f0ef596feda968dfa25c04b3d2.tar.xz
slixmpp-a9262c4e0a4c23f0ef596feda968dfa25c04b3d2.zip
* bugfixes
Diffstat (limited to 'sleekxmpp/__init__.py')
-rw-r--r--sleekxmpp/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index d7eff574..ddd93fe1 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -81,7 +81,7 @@ class ClientXMPP(basexmpp, XMLStream):
self.registerFeature("<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls' />", self.handler_starttls, True)
self.registerFeature("<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl' />", self.handler_sasl_auth, True)
self.registerFeature("<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind' />", self.handler_bind_resource)
- self.registerFeature("<session xmlns='urn:ietf:params:xml:ns:xmpp-session' />", self.handler_start_session)
+ #self.registerFeature("<session xmlns='urn:ietf:params:xml:ns:xmpp-session' />", self.handler_start_session)
#self.registerStanzaExtension('PresenceStanza', PresenceStanzaType)
#self.register_plugins()
@@ -242,8 +242,12 @@ class ClientXMPP(basexmpp, XMLStream):
response = self.send(out, self.makeIqResult(id))
self.set_jid(response.find('{urn:ietf:params:xml:ns:xmpp-bind}bind/{urn:ietf:params:xml:ns:xmpp-bind}jid').text)
logging.info("Node set to: %s" % self.fulljid)
+ logging.debug("Established Session")
+ self.sessionstarted = True
+ self.event("session_start")
def handler_start_session(self, xml):
+ "deprecated"
if self.authenticated:
response = self.send(self.makeIqSet(xml), self.makeIq(self.getId()))
logging.debug("Established Session")