From 25e6d9f4aadc4a1a7aa5365fd03277015bc01904 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Wed, 31 May 2006 21:12:03 +0000 Subject: [PATCH] send our real show, when we connect to a transport --- src/common/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 850317ce8..6325a3758 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -872,7 +872,8 @@ class Connection(ConnectionHandlers): def send_agent_status(self, agent, ptype): if not self.connection: return - p = common.xmpp.Presence(to = agent, typ = ptype) + show = helpers.get_xmpp_show(STATUS_LIST[self.connected]) + p = common.xmpp.Presence(to = agent, typ = ptype, show = show) p = self.add_sha(p, ptype != 'unavailable') self.connection.send(p)