Mercurial > pidgin
changeset 20663:22034ce81dc4
serv_got_attention() doesn't expect an escaped string; it just wants a name. The str variable was unused.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Fri, 28 Sep 2007 00:33:12 +0000 |
parents | 91a345965223 |
children | 6b9e964f0572 |
files | libpurple/protocols/msn/switchboard.c |
diffstat | 1 files changed, 1 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/switchboard.c Wed Sep 26 10:35:37 2007 +0000 +++ b/libpurple/protocols/msn/switchboard.c Fri Sep 28 00:33:12 2007 +0000 @@ -958,25 +958,14 @@ nudge_msg(MsnCmdProc *cmdproc, MsnMessage *msg) { MsnSwitchBoard *swboard; - char *username, *str; PurpleAccount *account; - PurpleBuddy *buddy; const char *user; - str = NULL; - swboard = cmdproc->data; account = cmdproc->session->account; user = msg->remote_user; - if ((buddy = purple_find_buddy(account, user)) != NULL) - username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1); - else - username = g_markup_escape_text(user, -1); - - serv_got_attention(account->gc, buddy->name, MSN_NUDGE); - g_free(username); - g_free(str); + serv_got_attention(account->gc, user, MSN_NUDGE); } /**************************************************************************