Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo.c @ 21801:3265e4619117
We need to use the actual username for attentions, instead of alias. This should fix the 'new im for buzz' bug on yahoo.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 09 Dec 2007 10:08:40 +0000 |
parents | 665e04562de0 |
children | ffbd2e3e10e4 |
comparison
equal
deleted
inserted
replaced
21800:73aab5bdd830 | 21801:3265e4619117 |
---|---|
897 g_free(m); | 897 g_free(m); |
898 m = m2; | 898 m = m2; |
899 purple_util_chrreplace(m, '\r', '\n'); | 899 purple_util_chrreplace(m, '\r', '\n'); |
900 | 900 |
901 if (!strcmp(m, "<ding>")) { | 901 if (!strcmp(m, "<ding>")) { |
902 PurpleBuddy *buddy; | |
903 PurpleAccount *account; | 902 PurpleAccount *account; |
904 PurpleConversation *c; | 903 PurpleConversation *c; |
905 char *username; | 904 char *username; |
906 | 905 |
907 account = purple_connection_get_account(gc); | 906 account = purple_connection_get_account(gc); |
908 c = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, im->from, account); | 907 c = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, im->from, account); |
909 if (c == NULL) | 908 if (c == NULL) |
910 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, im->from); | 909 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, im->from); |
911 | 910 |
912 if ((buddy = purple_find_buddy(account, im->from)) != NULL) | 911 username = g_markup_escape_text(im->from, -1); |
913 username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1); | |
914 else | |
915 username = g_markup_escape_text(im->from, -1); | |
916 | |
917 serv_got_attention(gc, username, YAHOO_BUZZ); | 912 serv_got_attention(gc, username, YAHOO_BUZZ); |
918 | |
919 g_free(username); | 913 g_free(username); |
920 g_free(m); | 914 g_free(m); |
921 g_free(im); | 915 g_free(im); |
922 continue; | 916 continue; |
923 } | 917 } |