diff src/core/xmpp.py @ 567:01569aa4d7aa

core: initial discovery fix
author Goffi <goffi@goffi.org>
date Mon, 07 Jan 2013 00:58:43 +0100
parents 0bb2e0d1c878
children ca13633d3b6b
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):