send our real show, when we connect to a

transport
This commit is contained in:
Dimitur Kirov 2006-05-31 21:12:03 +00:00
parent 4aa6c95398
commit 25e6d9f4aa
1 changed files with 2 additions and 1 deletions

View File

@ -872,7 +872,8 @@ class Connection(ConnectionHandlers):
def send_agent_status(self, agent, ptype): def send_agent_status(self, agent, ptype):
if not self.connection: if not self.connection:
return 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') p = self.add_sha(p, ptype != 'unavailable')
self.connection.send(p) self.connection.send(p)