# HG changeset patch # User Yoshiki Yazawa # Date 1210658574 -32400 # Node ID e4f8e5708afd18409c12e0832598c04ab5eea5dc # Parent 746ff3b54c103405226702a219a50e2e562c0276 due to application of strip_markup() in writing_im_cb(), translation for sender had not worked. changed P_SENDER so that it matches striped representation of sender. diff -r 746ff3b54c10 -r e4f8e5708afd pidgin-twitter.c --- a/pidgin-twitter.c Tue May 13 08:26:38 2008 +0900 +++ b/pidgin-twitter.c Tue May 13 15:02:54 2008 +0900 @@ -61,7 +61,7 @@ /* patterns */ #define P_RECIPIENT "@([A-Za-z0-9_]+)" -#define P_SENDER "([A-Za-z0-9_]+): " +#define P_SENDER "^([A-Za-z0-9_]+): " #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" @@ -448,7 +448,7 @@ translate(buffer, RECIPIENT); } - /* escape pseudo command */ + /* escape pseudo command (to show same result to sending message) */ if(purple_prefs_get_bool(OPT_ESCAPE_PSEUDO)) { escape(buffer); }