changeset 201:0aeeafe37ef7

revised parrot blocker for identi.ca. now it compares stripped text and the stored message.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 12 Aug 2008 15:20:58 +0900
parents 9a2d727f39b4
children 67d8eaba446d
files pidgin-twitter.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Mon Aug 11 14:31:54 2008 +0900
+++ b/pidgin-twitter.c	Tue Aug 12 15:20:58 2008 +0900
@@ -1540,14 +1540,16 @@
     }
 
     if(service == identica_service) {
+        gchar *stripped = strip_html_markup(*buffer);
         if(identica_post &&
            strlen(identica_post) &&
-           strstr(*buffer, identica_post)) {
+           strstr(stripped, identica_post)) {
             twitter_debug("identica parrot clearing: buf = %s post = %s\n",
                           *buffer, identica_post);
             g_free(*sender); *sender = NULL;
             g_free(*buffer); *buffer = NULL;
         }
+        g_free(stripped);
     }
 
     if(service != twitter_service) {