comparison src/protocols/yahoo/yahoochat.c @ 11454:201617d49573

[gaim-migrate @ 13693] This commit includes a number of changes: 1. Aliases are now used consistently in chats. If the prpl uses unique screen names for chats (e.g. Jabber), then aliases are not used at all. 2. The chat list is now colorized to match the colors used in the chat itself. 3. Buddies are bolded in the chat user list. 4. Buddies are sorted above non-buddies in the chat user list. 5. The chat user list is ellipsized when possible (i.e. on GTK+ 2.6.0 or above). 6. I've accepted patch #1178248, by Matt Amato to add "buddy-added" and "buddy-removed" signals. These were used in my implementation of #3 and #4, to update the GUI when users are added or removed from the buddy list. 7. I've added a "blist-node-aliased" signal that is emitted when a buddy, contact, or chat is aliased. 8. Since it was hard to separate and I need it at some point, I'm letting it slip in... I've changed GaimConversation.log to be a GList named logs. This way, we can have multiple logs for a single conversation. This will be necessary to implement unnamed chat logging in some reasonable fasion (see my notes in the TODO file). committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 06 Sep 2005 03:04:07 +0000
parents 519dc2186438
children b1f8151e6ae5
comparison
equal deleted inserted replaced
11453:d446fcc2c63b 11454:201617d49573
431 c = serv_got_joined_chat(gc, YAHOO_CHAT_ID, room); 431 c = serv_got_joined_chat(gc, YAHOO_CHAT_ID, room);
432 if (topic) 432 if (topic)
433 gaim_conv_chat_set_topic(GAIM_CONV_CHAT(c), NULL, topic); 433 gaim_conv_chat_set_topic(GAIM_CONV_CHAT(c), NULL, topic);
434 yd->in_chat = 1; 434 yd->in_chat = 1;
435 yd->chat_name = g_strdup(room); 435 yd->chat_name = g_strdup(room);
436 gaim_conv_chat_add_users(GAIM_CONV_CHAT(c), members, flags); 436 gaim_conv_chat_add_users(GAIM_CONV_CHAT(c), members, NULL, flags, FALSE);
437 437
438 tmpmsg = g_strdup_printf(_("You are now chatting in %s."), room); 438 tmpmsg = g_strdup_printf(_("You are now chatting in %s."), room);
439 gaim_conv_chat_write(GAIM_CONV_CHAT(c), "", tmpmsg, GAIM_MESSAGE_SYSTEM, time(NULL)); 439 gaim_conv_chat_write(GAIM_CONV_CHAT(c), "", tmpmsg, GAIM_MESSAGE_SYSTEM, time(NULL));
440 g_free(tmpmsg); 440 g_free(tmpmsg);
441 } else { 441 } else {
442 c = serv_got_joined_chat(gc, YAHOO_CHAT_ID, room); 442 c = serv_got_joined_chat(gc, YAHOO_CHAT_ID, room);
443 if (topic) 443 if (topic)
444 gaim_conv_chat_set_topic(GAIM_CONV_CHAT(c), NULL, topic); 444 gaim_conv_chat_set_topic(GAIM_CONV_CHAT(c), NULL, topic);
445 yd->in_chat = 1; 445 yd->in_chat = 1;
446 yd->chat_name = g_strdup(room); 446 yd->chat_name = g_strdup(room);
447 gaim_conv_chat_add_users(GAIM_CONV_CHAT(c), members, flags); 447 gaim_conv_chat_add_users(GAIM_CONV_CHAT(c), members, NULL, flags, FALSE);
448 } 448 }
449 } else if (c) { 449 } else if (c) {
450 yahoo_chat_add_users(GAIM_CONV_CHAT(c), members); 450 yahoo_chat_add_users(GAIM_CONV_CHAT(c), members);
451 } 451 }
452 452