Mercurial > pidgin-twitter
comparison pidgin-twitter.c @ 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 | 42869098eda3 |
comparison
equal
deleted
inserted
replaced
45:746ff3b54c10 | 46:e4f8e5708afd |
---|---|
59 #define DEFAULT_LIST "(list of users: separated with ' ,:;')" | 59 #define DEFAULT_LIST "(list of users: separated with ' ,:;')" |
60 #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>" | 60 #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>" |
61 | 61 |
62 /* patterns */ | 62 /* patterns */ |
63 #define P_RECIPIENT "@([A-Za-z0-9_]+)" | 63 #define P_RECIPIENT "@([A-Za-z0-9_]+)" |
64 #define P_SENDER "<body>([A-Za-z0-9_]+): " | 64 #define P_SENDER "^([A-Za-z0-9_]+): " |
65 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" | 65 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" |
66 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" | 66 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" |
67 | 67 |
68 /* debug macros */ | 68 /* debug macros */ |
69 #define twitter_debug(fmt, ...) purple_debug(PURPLE_DEBUG_INFO, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); | 69 #define twitter_debug(fmt, ...) purple_debug(PURPLE_DEBUG_INFO, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); |
446 } | 446 } |
447 if(purple_prefs_get_bool(OPT_TRANSLATE_RECIPIENT)) { | 447 if(purple_prefs_get_bool(OPT_TRANSLATE_RECIPIENT)) { |
448 translate(buffer, RECIPIENT); | 448 translate(buffer, RECIPIENT); |
449 } | 449 } |
450 | 450 |
451 /* escape pseudo command */ | 451 /* escape pseudo command (to show same result to sending message) */ |
452 if(purple_prefs_get_bool(OPT_ESCAPE_PSEUDO)) { | 452 if(purple_prefs_get_bool(OPT_ESCAPE_PSEUDO)) { |
453 escape(buffer); | 453 escape(buffer); |
454 } | 454 } |
455 | 455 |
456 return FALSE; | 456 return FALSE; |