From: <ebl...@us...> - 2006-06-26 17:52:31
|
Revision: 16351 Author: eblanton Date: 2006-06-26 10:52:26 -0700 (Mon, 26 Jun 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16351&view=rev Log Message: ----------- Focus newly created IRC tabs created with /join and /query Modified Paths: -------------- trunk/src/protocols/irc/cmds.c trunk/src/protocols/irc/msgs.c Modified: trunk/src/protocols/irc/cmds.c =================================================================== --- trunk/src/protocols/irc/cmds.c 2006-06-26 09:04:41 UTC (rev 16350) +++ trunk/src/protocols/irc/cmds.c 2006-06-26 17:52:26 UTC (rev 16351) @@ -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); Modified: trunk/src/protocols/irc/msgs.c =================================================================== --- trunk/src/protocols/irc/msgs.c 2006-06-26 09:04:41 UTC (rev 16350) +++ trunk/src/protocols/irc/msgs.c 2006-06-26 17:52:26 UTC (rev 16351) @@ -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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |