Mercurial > pidgin.yaz
diff libpurple/plugins/statenotify.c @ 24256:0d0088b03745
Hide the blistnode, buddy, contact, group, and chat structs
Updated the libpurple plugins to use api rather than the structs directly
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Tue, 28 Oct 2008 04:22:57 +0000 |
parents | 116a1483d554 |
children | 168329be9623 |
line wrap: on
line diff
--- a/libpurple/plugins/statenotify.c Tue Oct 28 03:05:32 2008 +0000 +++ b/libpurple/plugins/statenotify.c Tue Oct 28 04:22:57 2008 +0000 @@ -15,13 +15,18 @@ static void write_status(PurpleBuddy *buddy, const char *message) { + PurpleAccount *account = NULL; PurpleConversation *conv; const char *who; char buf[256]; char *escaped; + const gchar *buddy_name = NULL; + + account = purple_buddy_get_account(buddy); + buddy_name = purple_buddy_get_name(buddy); conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, - buddy->name, buddy->account); + buddy_name, account); if (conv == NULL) return;