Mercurial > pidgin
comparison src/protocols/yahoo/util.c @ 6546:e34907332e46
[gaim-migrate @ 7068]
I added translators to help->about. Bueno?
I also changed a few .po files minorly, and converting one or 3 to utf-8
from iso-8859-somethingotherthanone.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 21 Aug 2003 03:43:03 +0000 |
parents | 63c449a1022f |
children | 42fdf16f1dad |
comparison
equal
deleted
inserted
replaced
6545:5a3fbef32910 | 6546:e34907332e46 |
---|---|
24 #include "config.h" | 24 #include "config.h" |
25 #endif | 25 #endif |
26 | 26 |
27 #include "prpl.h" | 27 #include "prpl.h" |
28 #include "debug.h" | 28 #include "debug.h" |
29 | |
30 #include <string.h> | |
29 | 31 |
30 | 32 |
31 /* | 33 /* |
32 * I found these on some website but i don't know that they actually | 34 * I found these on some website but i don't know that they actually |
33 * work (or are supposed to work). I didn't impliment them yet. | 35 * work (or are supposed to work). I didn't impliment them yet. |
124 while (j++ < xs) { | 126 while (j++ < xs) { |
125 if (x[j] != 'm') | 127 if (x[j] != 'm') |
126 continue; | 128 continue; |
127 else { | 129 else { |
128 tmp = g_string_new_len(x + i + 2, j - i - 2); | 130 tmp = g_string_new_len(x + i + 2, j - i - 2); |
129 if (tmp->str[0] == '#') | 131 if ((tmp->str[0] == '#')) |
130 g_string_append_printf(s, "<FONT COLOR=\"%s\">", tmp->str); | 132 g_string_append_printf(s, "<FONT COLOR=\"%s\">", tmp->str); |
131 else if (match = (char *) g_hash_table_lookup(ht, tmp->str)) | 133 else if ((match = (char *) g_hash_table_lookup(ht, tmp->str))) |
132 g_string_append(s, match); | 134 g_string_append(s, match); |
133 else { | 135 else { |
134 gaim_debug(GAIM_DEBUG_ERROR, "yahoo", | 136 gaim_debug(GAIM_DEBUG_ERROR, "yahoo", |
135 "Unknown ansi code 'ESC[%sm'.\n", tmp->str); | 137 "Unknown ansi code 'ESC[%sm'.\n", tmp->str); |
136 g_string_free(tmp, TRUE); | 138 g_string_free(tmp, TRUE); |
157 continue; | 159 continue; |
158 else { | 160 else { |
159 tmp = g_string_new_len(x + i, j - i + 1); | 161 tmp = g_string_new_len(x + i, j - i + 1); |
160 g_string_ascii_down(tmp); | 162 g_string_ascii_down(tmp); |
161 | 163 |
162 if (match = (char *) g_hash_table_lookup(ht, tmp->str)) | 164 if ((match = (char *) g_hash_table_lookup(ht, tmp->str))) |
163 g_string_append(s, match); | 165 g_string_append(s, match); |
164 else if (!g_ascii_strncasecmp(tmp->str, "<FADE ", 6) || | 166 else if (!g_ascii_strncasecmp(tmp->str, "<FADE ", 6) || |
165 !g_ascii_strncasecmp(tmp->str, "<ALT ", 5) || | 167 !g_ascii_strncasecmp(tmp->str, "<ALT ", 5) || |
166 !g_ascii_strncasecmp(tmp->str, "<SND ", 5)) { | 168 !g_ascii_strncasecmp(tmp->str, "<SND ", 5)) { |
167 | 169 |