Mercurial > pidgin-twitter
diff pidgin-twitter.h @ 286:6d0bb66fedc7
added group support for identi.ca.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 28 Jan 2009 23:17:40 +0900 |
parents | 2d559555875f |
children | 32ce4374dc8c |
line wrap: on
line diff
--- a/pidgin-twitter.h Mon Jan 12 01:09:30 2009 +0900 +++ b/pidgin-twitter.h Wed Jan 28 23:17:40 2009 +0900 @@ -39,6 +39,7 @@ USER, CHANNEL_WASSR, TAG_IDENTICA, + GROUP_IDENTICA, IMAGE_TWITTER, IMAGE_WASSR, IMAGE_IDENTICA, @@ -159,6 +160,7 @@ #define CHANNEL_FORMAT_WASSR "%s<a href='http://wassr.jp/channel/%s'>%s</a> " #define CHANNEL_FORMAT_IDENTICA "%s<a href='http://identi.ca/tag/%s'>%s</a> " #define TAG_FORMAT_IDENTICA "#<a href='http://identi.ca/tag/%s'>%s</a>" +#define GROUP_FORMAT_IDENTICA "!<a href='http://identi.ca/group/%s'>%s</a>" #define DEFAULT_LIST "(list of users: separated with ' ,:;')" #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>" @@ -172,6 +174,7 @@ #define P_USER "^.*?(?:<a .+?>)?([-A-Za-z0-9_]+)(?:</a>)?:" #define P_CHANNEL "^(.*?(?:<a .+?>)?[-A-Za-z0-9_]+(?:</a>)?: \\r?\\n?#)([A-Za-z0-9_]+) " #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)" +#define P_GROUP_IDENTICA "!([-A-Za-z0-9_]+)" #define P_IMAGE_TWITTER "<img .*=\"profile-(?:image|img)\".*src=\"(http://.+?)\".*/>" #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" #define P_IMAGE_IDENTICA "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile photo\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-9_]+\"/>" @@ -213,7 +216,7 @@ #define DEFAULT_ICON_MAX_COUNT (50) #define DEFAULT_ICON_MAX_DAYS (7) #define DAYS_TO_SECONDS(d) ((d) * 86400) -#define NUM_REGPS (13) +#define NUM_REGPS (14) #define NUM_SERVICES (4) /* twitter, wassr, identica, jisko. */ /* debug macros */