diff --git a/src/common/connection.py b/src/common/connection.py
index 850317ce81a73767b0d93f62a5f544067f03a723..6325a3758623103fe92260f8f5d250e0c1828a95 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)