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-03-22 16:09:59 +0300
committerYann Leboulanger <asterix@lagaule.org>2004-03-22 16:09:59 +0300
commit2bed6bc6257a32784cf05a76098dfd6f8be25491 (patch)
tree92a0be405dbdf4aeea57a588095f9a2c8435ffae /core
parent569eee98bf116714468e2691e57242cc0866546b (diff)
logger plugin now works
some bugfixes
Diffstat (limited to 'core')
-rw-r--r--core/core.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/core/core.py b/core/core.py
index 8fe110d29..e71c8cd88 100644
--- a/core/core.py
+++ b/core/core.py
@@ -230,9 +230,12 @@ class GajimCore:
while 1:
if not self.hub.queueIn.empty():
ev = self.hub.queueIn.get()
- for con in self.connexions.keys():
- if ev[1] == self.connexions[con]:
- break
+ if ev[1] and (ev[1] in self.connexions.values()):
+ for con in self.connexions.keys():
+ if ev[1] == self.connexions[con]:
+ break
+ else:
+ con = None
#('QUIT', account, ())
if ev[0] == 'QUIT':
# for con in self.connexions.keys():
@@ -358,6 +361,12 @@ class GajimCore:
print "error " + c.lastErr
else:
self.hub.sendPlugin('ACC_OK', ev[1], ev[2])
+ #('ACC_CHG', old_account, new_account)
+ elif ev[0] == 'ACC_CHG':
+ self.connected[ev[2]] = self.connected[ev[1]]
+ del self.connected[ev[1]]
+ if con:
+ self.connexions[con] = self.connected[ev[2]]
#('ASK_VCARD', account, jid)
elif ev[0] == 'ASK_VCARD':
iq = common.jabber.Iq(to=ev[2], type="get")