From d165ad29bc4a9e3c2418786020f3eeb3905a4514 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 11 Oct 2004 16:43:41 +0000
Subject: [PATCH] print the away message when we open a chat window

---
 plugins/gtkgui/gtkgui.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py
index 4bef1a4018..56637bd946 100644
--- a/plugins/gtkgui/gtkgui.py
+++ b/plugins/gtkgui/gtkgui.py
@@ -319,6 +319,9 @@ class message_Window:
 		#print queued messages
 		if plugin.queues[account].has_key(user.jid):
 			self.read_queue(plugin.queues[account][user.jid])
+		if self.user.show != 'online':
+			self.print_conversation(_("%s is now %s (%s)") % (user.name, \
+				user.show, user.status), 'status')
 
 class gc:
 	def delete_event(self, widget):
-- 
GitLab