[xchat-gnome] Bug 326135 -  Little problem with query topic
- From: Ritesh Khadgaray <rkhadgaray src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [xchat-gnome] Bug 326135 -  Little problem with query topic
 
- Date: Fri, 20 Nov 2009 14:32:40 +0000 (UTC)
 
commit 09f0e3f0f194ceff5c671db6cd8e358eb2f00776
Author: Ritesh Khadgaray <khadgaray gmail com>
Date:   Fri Nov 20 19:51:47 2009 +0530
    Bug 326135 -  Little problem with query topic
    
    The topic stay empty until, in a conversation window opened using "query"
    until the other guy respond with something.
 src/common/outbound.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 280013c..7c99c2f 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -2796,8 +2796,13 @@ open_query (server *serv, char *nick, gboolean focus_existing)
 	session *sess;
 
 	sess = find_dialog (serv, nick);
-	if (!sess)
-		new_ircwindow (serv, nick, SESS_DIALOG, 1);
+	if (!sess) {
+		sess = new_ircwindow (serv, nick, SESS_DIALOG, 1);
+
+                struct User *user = userlist_find_global (serv, nick);
+                if (user && user->hostname)
+                        set_topic (sess, user->hostname);		
+	}
 	else if (focus_existing)
 		fe_ctrl_gui (sess, 2, 0);	/* bring-to-front */
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]