Mercurial > pidgin
diff libpurple/protocols/msn/msn.c @ 25306:7d6866244106
make this togglable via env rather than #define
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 11 Jan 2009 22:27:23 +0000 |
parents | 3e39e4652c36 |
children | 1eedb375c937 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Sun Jan 11 22:03:34 2009 +0000 +++ b/libpurple/protocols/msn/msn.c Sun Jan 11 22:27:23 2009 +0000 @@ -1343,6 +1343,7 @@ { PurpleConnection *gc; MsnSession *session; + GSList *list, *l; gc = purple_account_get_connection(account); @@ -1351,6 +1352,17 @@ session = gc->proto_data; msn_change_status(session); } + + /* fake it to ourselves */ + if((list = purple_find_buddies(account, + purple_account_get_username(account))) == NULL) + return; + + for(l = list; l != NULL; l = l->next) { + purple_blist_update_buddy_status(l->data, status); + } + + g_slist_free(list); } static void