Mercurial > pidgin
comparison libpurple/protocols/qq/char_conv.c @ 24088:147ada94a1d8
2008.08.16 - ccpaging <ecc_hy(at)hotmail.com>
* Rename group to room. If you used pidginqq before, this may create a new room with same title, you may
delete old one
* Replace purple_debug with purple_debug_info, purple_debug_warning, purple_debug_error
* Add server notice and server new, and two options to turn on/off
* Minor modify for reducing transaction's debug infor
* Minor modifies for system notice and QQ news.
* Add 4 new strings need translate compare with p10.
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 13:25:07 +0000 |
parents | 1c50f12b1c52 |
children | 69c218fd5d54 25f62d21b3f8 |
comparison
equal
deleted
inserted
replaced
24087:40a4e02027f4 | 24088:147ada94a1d8 |
---|---|
111 if (error == NULL) { | 111 if (error == NULL) { |
112 return ret; /* conversion is OK */ | 112 return ret; /* conversion is OK */ |
113 } | 113 } |
114 | 114 |
115 /* conversion error */ | 115 /* conversion error */ |
116 purple_debug(PURPLE_DEBUG_ERROR, "QQ_CONVERT", "%s\n", error->message); | 116 purple_debug_error("QQ_CONVERT", "%s\n", error->message); |
117 | 117 |
118 qq_hex_dump(PURPLE_DEBUG_WARNING, "QQ_CONVERT", | 118 qq_hex_dump(PURPLE_DEBUG_WARNING, "QQ_CONVERT", |
119 (guint8 *) str, (len == -1) ? strlen(str) : len, | 119 (guint8 *) str, (len == -1) ? strlen(str) : len, |
120 "Dump failed text"); | 120 "Dump failed text"); |
121 | 121 |
180 /* Henry: The range QQ sends rounds from 8 to 22, where a font size | 180 /* Henry: The range QQ sends rounds from 8 to 22, where a font size |
181 * of 10 is equal to 3 in html font tag */ | 181 * of 10 is equal to 3 in html font tag */ |
182 g_string_append_printf(encoded, | 182 g_string_append_printf(encoded, |
183 "<font color=\"%s\"><font face=\"%s\"><font size=\"%d\">", | 183 "<font color=\"%s\"><font face=\"%s\"><font size=\"%d\">", |
184 color_code, font_name, font_size / 3); | 184 color_code, font_name, font_size / 3); |
185 purple_debug(PURPLE_DEBUG_INFO, "QQ_MESG", | 185 purple_debug_info("QQ_MESG", |
186 "recv <font color=\"%s\"><font face=\"%s\"><font size=\"%d\">\n", | 186 "recv <font color=\"%s\"><font face=\"%s\"><font size=\"%d\">\n", |
187 color_code, font_name, font_size / 3); | 187 color_code, font_name, font_size / 3); |
188 g_string_append(encoded, msg_utf8); | 188 g_string_append(encoded, msg_utf8); |
189 | 189 |
190 if (is_bold) { | 190 if (is_bold) { |