Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/switchboard.c @ 27728:b8d98bc09656
propagate from branch 'im.pidgin.pidgin' (head 45b8a011cd84e0e69d7ac5a6fb84f55cdb0809cb)
to branch 'im.pidgin.pidgin.yaz' (head 13a41ae84ed6f01e6f56d570c07fd04f3b02e781)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 02 Oct 2007 17:49:49 +0000 |
parents | 26f55eb6ab59 d35d761ded1a |
children | 73ef026191e7 |
comparison
equal
deleted
inserted
replaced
27727:003b15b3b410 | 27728:b8d98bc09656 |
---|---|
960 | 960 |
961 static void | 961 static void |
962 nudge_msg(MsnCmdProc *cmdproc, MsnMessage *msg) | 962 nudge_msg(MsnCmdProc *cmdproc, MsnMessage *msg) |
963 { | 963 { |
964 MsnSwitchBoard *swboard; | 964 MsnSwitchBoard *swboard; |
965 char *username, *str; | |
966 PurpleAccount *account; | 965 PurpleAccount *account; |
967 PurpleBuddy *buddy; | |
968 const char *user; | 966 const char *user; |
969 | |
970 str = NULL; | |
971 | 967 |
972 swboard = cmdproc->data; | 968 swboard = cmdproc->data; |
973 account = cmdproc->session->account; | 969 account = cmdproc->session->account; |
974 user = msg->remote_user; | 970 user = msg->remote_user; |
975 | 971 |
976 if ((buddy = purple_find_buddy(account, user)) != NULL) | 972 serv_got_attention(account->gc, user, MSN_NUDGE); |
977 username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1); | |
978 else | |
979 username = g_markup_escape_text(user, -1); | |
980 | |
981 serv_got_attention(account->gc, buddy->name, MSN_NUDGE); | |
982 g_free(username); | |
983 g_free(str); | |
984 } | 973 } |
985 | 974 |
986 /************************************************************************** | 975 /************************************************************************** |
987 * Connect stuff | 976 * Connect stuff |
988 **************************************************************************/ | 977 **************************************************************************/ |