/pidgin/main: e1fb591ab842: Update cap plugin to new message API
Jorge Villase?or
salinasv at pidgin.im
Thu Feb 11 23:33:08 EST 2016
Changeset: e1fb591ab842a6ec63e926c6708cb2431a22f192
Author: Jorge Villase?or <salinasv at pidgin.im>
Date: 2016-02-11 20:31 -0800
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/e1fb591ab842
Description:
Update cap plugin to new message API
diffstat:
pidgin/plugins/cap/cap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff --git a/pidgin/plugins/cap/cap.c b/pidgin/plugins/cap/cap.c
--- a/pidgin/plugins/cap/cap.c
+++ b/pidgin/plugins/cap/cap.c
@@ -345,7 +345,7 @@ static void sent_im_msg(PurpleAccount *a
guint interval, words;
CapStatistics *stats = NULL;
- buddy = purple_blist_find_buddy(account, purple_message_get_who(msg));
+ buddy = purple_blist_find_buddy(account, purple_message_get_recipient(msg));
if (buddy == NULL)
return;
@@ -355,7 +355,7 @@ static void sent_im_msg(PurpleAccount *a
stats = get_stats_for(buddy);
- insert_word_count(purple_account_get_username(account), purple_message_get_who(msg), words);
+ insert_word_count(purple_account_get_username(account), purple_message_get_recipient(msg), words);
stats->last_message = time(NULL);
stats->last_message_status_id = purple_status_get_id(get_status_for(buddy));
if(stats->timeout_source_id != 0)
More information about the Commits
mailing list