diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2004-03-04 23:56:39 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2004-03-04 23:56:39 +0300 |
commit | cf2c7b5037335963d114533573169fb2c1a35d9c (patch) | |
tree | 158e61b84342a2177c1114f0a998c9463705dfcf /core | |
parent | bad3e45b97e6c6eb616a99a4dd08d691cf862d83 (diff) |
log on / log off for agents
Diffstat (limited to 'core')
-rw-r--r-- | core/core.py | 8 |
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: |