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-04 23:56:39 +0300
committerYann Leboulanger <asterix@lagaule.org>2004-03-04 23:56:39 +0300
commitcf2c7b5037335963d114533573169fb2c1a35d9c (patch)
tree158e61b84342a2177c1114f0a998c9463705dfcf /core
parentbad3e45b97e6c6eb616a99a4dd08d691cf862d83 (diff)
log on / log off for agents
Diffstat (limited to 'core')
-rw-r--r--core/core.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/core.py b/core/core.py
index b49a735a9..886e96ed7 100644
--- a/core/core.py
+++ b/core/core.py
@@ -344,6 +344,7 @@ class GajimCore:
iq._setTag('vCard', common.jabber.NS_VCARD)
iq.setID(self.con.getAnID())
self.con.send(iq)
+ #('VCARD', {entry1: data, entry2: {entry21: data, ...}, ...})
elif ev[0] == 'VCARD':
iq = common.jabber.Iq(type="set")
iq.setID(self.con.getAnID())
@@ -357,6 +358,13 @@ class GajimCore:
else:
iq2.insertTag(i).putData(ev[1][i])
self.con.send(iq)
+ #('AGENT_LOGGING', (agent, type))
+ elif ev[0] == 'AGENT_LOGGING':
+ t = ev[1][1];
+ if not t:
+ t='available';
+ p = common.jabber.Presence(to=ev[1][0], type=t)
+ self.con.send(p)
else:
log.debug("Unknown Command %s" % ev[0])
elif self.connected == 1: