Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2004-05-20 19:47:50 +0400
committerYann Leboulanger <asterix@lagaule.org>2004-05-20 19:47:50 +0400
commit0f1978a53b6f87f71a73dd671651503c349d7f18 (patch)
treecb015712b2cfa8980cf5b3c3241970ff7994e280 /core
parent360570cf2de86cc6dc17af5eda5fb465cdd00af7 (diff)
we can recieve presence before recieving the roster (presence from disconnected transport) so self.connexions[con] must exist for presenceCB.
Diffstat (limited to 'core')
-rw-r--r--core/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/core.py b/core/core.py
index a076a597b..547b9c81e 100644
--- a/core/core.py
+++ b/core/core.py
@@ -226,6 +226,7 @@ class GajimCore:
con.setDisconnectHandler(self.disconnectedCB)
#BUG in jabberpy library : if hostname is wrong : "boucle"
if con.auth(name, password, ressource):
+ self.connexions[con] = account
con.requestRoster()
roster = con.getRoster().getRaw()
if not roster :
@@ -233,7 +234,6 @@ class GajimCore:
self.hub.sendPlugin('ROSTER', account, roster)
con.sendInitPresence()
self.hub.sendPlugin('STATUS', account, 'online')
- self.connexions[con] = account
self.connected[account] = 1
iq = common.jabber.Iq(type="get")
iq._setTag('vCard', common.jabber.NS_VCARD)