/pidgin/main: e1fb591ab842: Update cap plugin to new message API

Jorge Villase?or <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: e1fb591ab842a6ec63e926c6708cb2431a22f192
Author:	 Jorge Villase?or <[email protected]>
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)

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.