[gaim-migrate @ 16351]

Mon, 26 Jun 2006 17:52:26 +0000

author
Ethan Blanton <elb@pidgin.im>
date
Mon, 26 Jun 2006 17:52:26 +0000
changeset 13938
dbafabe02e9e
parent 13937
d5606a63400f
child 13939
76fa1e736c99

[gaim-migrate @ 16351]
Focus newly created IRC tabs created with /join and /query

src/protocols/irc/cmds.c file | annotate | diff | comparison | revisions
src/protocols/irc/msgs.c file | annotate | diff | comparison | revisions
--- 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;
 	}
 

mercurial