1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Reindent.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4405 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-01-06 16:08:29 +00:00 committed by exg
parent 646e3ecb5d
commit ef0cc3feca

View File

@ -183,27 +183,27 @@ char *recode_out(const SERVER_REC *server, const char *str, const char *target)
translit = settings_get_bool("recode_transliterate");
if (server != NULL && server->tag != NULL && target != NULL) {
char *tagtarget = g_strdup_printf("%s/%s", server->tag, target);
to = iconfig_get_str("conversions", tagtarget, NULL);
g_free(tagtarget);
}
if (to == NULL || *to == '\0')
to = iconfig_get_str("conversions", target, NULL);
if ((to == NULL || *to == '\0') && server != NULL)
to = iconfig_get_str("conversions", server->tag, NULL);
if (to == NULL || *to == '\0')
/* default outgoing charset if set */
to = settings_get_str("recode_out_default_charset");
if (server != NULL && server->tag != NULL && target != NULL) {
char *tagtarget = g_strdup_printf("%s/%s", server->tag, target);
to = iconfig_get_str("conversions", tagtarget, NULL);
g_free(tagtarget);
}
if (to == NULL || *to == '\0')
to = iconfig_get_str("conversions", target, NULL);
if ((to == NULL || *to == '\0') && server != NULL)
to = iconfig_get_str("conversions", server->tag, NULL);
if (to == NULL || *to == '\0')
/* default outgoing charset if set */
to = settings_get_str("recode_out_default_charset");
if (to && *to != '\0') {
if (translit && !is_translit(to))
to = translit_to = g_strconcat(to ,"//TRANSLIT", NULL);
if (to && *to != '\0') {
if (translit && !is_translit(to))
to = translit_to = g_strconcat(to ,"//TRANSLIT", NULL);
term_is_utf8 = recode_get_charset(&from);
recoded = g_convert(str, len, to, from, NULL, NULL, NULL);
}
g_free(translit_to);
term_is_utf8 = recode_get_charset(&from);
recoded = g_convert(str, len, to, from, NULL, NULL, NULL);
}
g_free(translit_to);
if (!recoded)
recoded = g_strdup(str);