# HG changeset patch # User Yoshiki Yazawa # Date 1215328925 -32400 # Node ID 090e28908f098992d5e6d84d13c953a7572da701 # Parent 76e5611910c5f02d173ead0e7a6d2645eb4baf3f apply strip_markup() to wassr too. diff -r 76e5611910c5 -r 090e28908f09 pidgin-twitter.c --- a/pidgin-twitter.c Sun Jul 06 15:57:34 2008 +0900 +++ b/pidgin-twitter.c Sun Jul 06 16:22:05 2008 +0900 @@ -462,24 +462,28 @@ void *data) { int utflen, bytes; - + gboolean twitter_ac = FALSE, wassr_ac = FALSE; twitter_debug("called\n"); - if(is_wassr_account(account, recipient)) { + twitter_ac = is_twitter_account(account, recipient); + wassr_ac = is_wassr_account(account, recipient); + + if(wassr_ac) { /* store sending message to address parrot problem */ g_strlcpy(wassr_post, *buffer, WASSR_POST_LEN); twitter_debug("parrot pushed:%s\n", *buffer); } - /* check if the message is from twitter */ - if(!is_twitter_account(account, recipient)) + /* strip all markups */ + if(twitter_ac || wassr_ac) + strip_markup(buffer); + + /* return here if the message is not to twitter */ + if(!twitter_ac) return FALSE; - /* strip all markups */ - strip_markup(buffer); - /* escape pseudo command */ - if(is_twitter_account(account, recipient) && + if(twitter_ac && purple_prefs_get_bool(OPT_ESCAPE_PSEUDO)) { escape(buffer); }