diff --git a/src/common/outbound.c b/src/common/outbound.c
index 280013c..ddc06f2 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 */
 }

