parent
4aa6c95398
commit
25e6d9f4aa
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue