Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 7095:c8bf2da398e3
[gaim-migrate @ 7660]
html.[ch] is gone. Everything inside was namespaced and put in util.[ch].
One less ugly part of gaim in the tree.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 03:43:18 +0000 |
parents | 3650612c7daa |
children | 770233dad86c |
comparison
equal
deleted
inserted
replaced
7094:2343c3aa1dec | 7095:c8bf2da398e3 |
---|---|
39 #include "privacy.h" | 39 #include "privacy.h" |
40 #include "prpl.h" | 40 #include "prpl.h" |
41 #include "proxy.h" | 41 #include "proxy.h" |
42 #include "request.h" | 42 #include "request.h" |
43 #include "util.h" | 43 #include "util.h" |
44 #include "html.h" | |
45 | 44 |
46 #include "aim.h" | 45 #include "aim.h" |
47 #include "md5.h" | 46 #include "md5.h" |
48 | 47 |
49 #define UC_AOL 0x02 | 48 #define UC_AOL 0x02 |
5277 buf[j] = '\0'; | 5276 buf[j] = '\0'; |
5278 | 5277 |
5279 if (strlen(buf) > c->maxlen) | 5278 if (strlen(buf) > c->maxlen) |
5280 return -E2BIG; | 5279 return -E2BIG; |
5281 | 5280 |
5282 buf2 = strip_html(buf); | 5281 buf2 = gaim_markup_strip_html(buf); |
5283 if (strlen(buf2) > c->maxvis) { | 5282 if (strlen(buf2) > c->maxvis) { |
5284 g_free(buf2); | 5283 g_free(buf2); |
5285 return -E2BIG; | 5284 return -E2BIG; |
5286 } | 5285 } |
5287 g_free(buf2); | 5286 g_free(buf2); |
5416 if ((userinfo != NULL) && (userinfo->flags & AIM_FLAG_AWAY) && (userinfo->away_len > 0) && (userinfo->away != NULL) && (userinfo->away_encoding != NULL)) { | 5415 if ((userinfo != NULL) && (userinfo->flags & AIM_FLAG_AWAY) && (userinfo->away_len > 0) && (userinfo->away != NULL) && (userinfo->away_encoding != NULL)) { |
5417 gchar *away_utf8 = oscar_encoding_to_utf8(userinfo->away_encoding, userinfo->away, userinfo->away_len); | 5416 gchar *away_utf8 = oscar_encoding_to_utf8(userinfo->away_encoding, userinfo->away, userinfo->away_len); |
5418 if (away_utf8 != NULL) { | 5417 if (away_utf8 != NULL) { |
5419 gchar *tmp1, *tmp2; | 5418 gchar *tmp1, *tmp2; |
5420 tmp1 = gaim_strreplace(away_utf8, "<BR>", "\n"); | 5419 tmp1 = gaim_strreplace(away_utf8, "<BR>", "\n"); |
5421 tmp2 = strip_html(tmp1); | 5420 tmp2 = gaim_markup_strip_html(tmp1); |
5422 g_free(tmp1); | 5421 g_free(tmp1); |
5423 tmp1 = away_subs(tmp2, gaim_connection_get_display_name(gc)); | 5422 tmp1 = away_subs(tmp2, gaim_connection_get_display_name(gc)); |
5424 g_free(tmp2); | 5423 g_free(tmp2); |
5425 tmp = ret; | 5424 tmp = ret; |
5426 ret = g_strconcat(tmp, _("<b>Away Message:</b> "), tmp1, "\n", NULL); | 5425 ret = g_strconcat(tmp, _("<b>Away Message:</b> "), tmp1, "\n", NULL); |