Mercurial > pidgin.yaz
diff src/conversation.c @ 10667:51ea57c36056
[gaim-migrate @ 12207]
Todd Troxell removed IM aliases from chat rooms. Unfortunate, but necessary
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 07 Mar 2005 19:09:45 +0000 |
parents | 4829abdc5c35 |
children | 4151d16f6348 |
line wrap: on
line diff
--- a/src/conversation.c Mon Mar 07 18:58:52 2005 +0000 +++ b/src/conversation.c Mon Mar 07 19:09:45 2005 +0000 @@ -1465,13 +1465,14 @@ if (flags & GAIM_MESSAGE_SEND) { b = gaim_find_buddy(account, gaim_account_get_username(account)); - - if (gaim_account_get_alias(account) != NULL) - who = account->alias; - else if (b != NULL && strcmp(b->name, gaim_buddy_get_contact_alias(b))) - who = gaim_buddy_get_contact_alias(b); - else if (gaim_connection_get_display_name(gc) != NULL) - who = gaim_connection_get_display_name(gc); + if (gaim_conversation_get_type(conv) != GAIM_CONV_CHAT) { + if (gaim_account_get_alias(account) != NULL) + who = account->alias; + else if (b != NULL && strcmp(b->name, gaim_buddy_get_contact_alias(b))) + who = gaim_buddy_get_contact_alias(b); + else if (gaim_connection_get_display_name(gc) != NULL) + who = gaim_connection_get_display_name(gc); + } else who = gaim_account_get_username(account); } @@ -1479,13 +1480,13 @@ b = gaim_find_buddy(account, gaim_conversation_get_name(conv)); - if (b != NULL) + if (b != NULL && gaim_conversation_get_type(conv) != GAIM_CONV_CHAT) who = gaim_buddy_get_contact_alias(b); else who = gaim_conversation_get_name(conv); } } - else if ((who != NULL) && (*who != '\0')) { + else if ((who != NULL) && (*who != '\0') && gaim_conversation_get_type(conv) != GAIM_CONV_CHAT) { b = gaim_find_buddy(account, who); if (b != NULL)