changeset 567:01569aa4d7aa

core: initial discovery fix
author Goffi <goffi@goffi.org>
date Mon, 07 Jan 2013 00:58:43 +0100
parents 9faccd827657
children 239abc5484c9
files src/core/xmpp.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/xmpp.py	Mon Jan 07 00:57:50 2013 +0100
+++ b/src/core/xmpp.py	Mon Jan 07 00:58:43 2013 +0100
@@ -73,8 +73,9 @@
         
         self.presence.available()
        
-        self.disco.requestInfo(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDisco, self.profile)  #FIXME: use these informations
-        self.disco.requestItems(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDiscoItems, self.disco, self.profile, self.client_initialized)
+        self.disco.requestInfo(jid.JID(self.jid.host)).addCallback(self.host_app.serverDisco, self.profile)  #FIXME: use these informations
+        
+        self.disco.requestItems(jid.JID(self.jid.host)).addCallback(self.host_app.serverDiscoItems, self.disco, self.profile, self.client_initialized)
         self.conn_deferred.callback(None)
 
     def initializationFailed(self, reason):