changeset 13876:1a862fb5e713

[gaim-migrate @ 16351] Focus newly created IRC tabs created with /join and /query committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 26 Jun 2006 17:52:26 +0000
parents eb20e674ccf2
children 765bbdf29d04
files src/protocols/irc/cmds.c src/protocols/irc/msgs.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c	Mon Jun 26 09:03:54 2006 +0000
+++ b/src/protocols/irc/cmds.c	Mon Jun 26 17:52:26 2006 +0000
@@ -402,6 +402,7 @@
 		return 0;
 
 	convo = gaim_conversation_new(GAIM_CONV_TYPE_IM, irc->account, args[0]);
+	gaim_conversation_present(convo);
 
 	if (args[1]) {
 		gc = gaim_account_get_connection(irc->account);
--- a/src/protocols/irc/msgs.c	Mon Jun 26 09:03:54 2006 +0000
+++ b/src/protocols/irc/msgs.c	Mon Jun 26 17:52:26 2006 +0000
@@ -675,6 +675,14 @@
 		/* We are joining a channel for the first time */
 		serv_got_joined_chat(gc, id++, args[0]);
 		g_free(nick);
+		convo = gaim_find_conversation_with_account(GAIM_CONV_TYPE_CHAT,
+							    args[0],
+							    irc->account);
+		if (convo == NULL) {
+			gaim_debug_error("irc", "tried to join %s but couldn't\n", args[0]);
+			return;
+		}
+		gaim_conversation_present(convo);
 		return;
 	}