changeset 46:e4f8e5708afd

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.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 13 May 2008 15:02:54 +0900
parents 746ff3b54c10
children 6774859df10b
files pidgin-twitter.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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        "<body>([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);
     }