Mercurial > pidgin-twitter
comparison pidgin-twitter.h @ 138:eaf5d2c4ada0
temporal fix for identi.ca problems:
- identi.ca sends us massive html.
- the XMPP daemon starts to parrot user's post.
author | Yoshiki Yazawa <yaz@honeyplnaet.jp> |
---|---|
date | Wed, 23 Jul 2008 07:32:21 +0900 |
parents | 9e80267fe566 |
children | 71c027f4f95d |
comparison
equal
deleted
inserted
replaced
137:97f11d057071 | 138:eaf5d2c4ada0 |
---|---|
146 "User-Agent: Pidgin-Twitter\r\n" \ | 146 "User-Agent: Pidgin-Twitter\r\n" \ |
147 "Authorization: Basic %s\r\n" \ | 147 "Authorization: Basic %s\r\n" \ |
148 "Content-Length: %d\r\n\r\n" | 148 "Content-Length: %d\r\n\r\n" |
149 #define TWITTER_STATUS_FORMAT "status=%s" | 149 #define TWITTER_STATUS_FORMAT "status=%s" |
150 #define TWITTER_STATUS_TERMINATOR "\r\n\r\n" | 150 #define TWITTER_STATUS_TERMINATOR "\r\n\r\n" |
151 #define TWITTER_DEFAULT_INTERVAL 60 | 151 #define TWITTER_DEFAULT_INTERVAL (60) |
152 | 152 |
153 /* wassr specific macros */ | 153 /* wassr specific macros */ |
154 #define WASSR_POST_LEN (255 * 4) | 154 #define WASSR_POST_LEN (255 * 4) |
155 #define IDENTICA_POST_LEN (140) | |
155 | 156 |
156 /* misc macros */ | 157 /* misc macros */ |
157 #define DEFAULT_ICON_SIZE 48 | 158 #define DEFAULT_ICON_SIZE (48) |
158 | 159 |
159 /* debug macros */ | 160 /* debug macros */ |
160 #define twitter_debug(fmt, ...) purple_debug(PURPLE_DEBUG_INFO, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); | 161 #define twitter_debug(fmt, ...) purple_debug(PURPLE_DEBUG_INFO, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); |
161 #define twitter_error(fmt, ...) purple_debug(PURPLE_DEBUG_ERROR, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); | 162 #define twitter_error(fmt, ...) purple_debug(PURPLE_DEBUG_ERROR, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); |
162 | 163 |