mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4405 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
646e3ecb5d
commit
ef0cc3feca
@ -183,27 +183,27 @@ char *recode_out(const SERVER_REC *server, const char *str, const char *target)
|
|||||||
|
|
||||||
translit = settings_get_bool("recode_transliterate");
|
translit = settings_get_bool("recode_transliterate");
|
||||||
|
|
||||||
if (server != NULL && server->tag != NULL && target != NULL) {
|
if (server != NULL && server->tag != NULL && target != NULL) {
|
||||||
char *tagtarget = g_strdup_printf("%s/%s", server->tag, target);
|
char *tagtarget = g_strdup_printf("%s/%s", server->tag, target);
|
||||||
to = iconfig_get_str("conversions", tagtarget, NULL);
|
to = iconfig_get_str("conversions", tagtarget, NULL);
|
||||||
g_free(tagtarget);
|
g_free(tagtarget);
|
||||||
}
|
}
|
||||||
if (to == NULL || *to == '\0')
|
if (to == NULL || *to == '\0')
|
||||||
to = iconfig_get_str("conversions", target, NULL);
|
to = iconfig_get_str("conversions", target, NULL);
|
||||||
if ((to == NULL || *to == '\0') && server != NULL)
|
if ((to == NULL || *to == '\0') && server != NULL)
|
||||||
to = iconfig_get_str("conversions", server->tag, NULL);
|
to = iconfig_get_str("conversions", server->tag, NULL);
|
||||||
if (to == NULL || *to == '\0')
|
if (to == NULL || *to == '\0')
|
||||||
/* default outgoing charset if set */
|
/* default outgoing charset if set */
|
||||||
to = settings_get_str("recode_out_default_charset");
|
to = settings_get_str("recode_out_default_charset");
|
||||||
|
|
||||||
if (to && *to != '\0') {
|
if (to && *to != '\0') {
|
||||||
if (translit && !is_translit(to))
|
if (translit && !is_translit(to))
|
||||||
to = translit_to = g_strconcat(to ,"//TRANSLIT", NULL);
|
to = translit_to = g_strconcat(to ,"//TRANSLIT", NULL);
|
||||||
|
|
||||||
term_is_utf8 = recode_get_charset(&from);
|
term_is_utf8 = recode_get_charset(&from);
|
||||||
recoded = g_convert(str, len, to, from, NULL, NULL, NULL);
|
recoded = g_convert(str, len, to, from, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
g_free(translit_to);
|
g_free(translit_to);
|
||||||
if (!recoded)
|
if (!recoded)
|
||||||
recoded = g_strdup(str);
|
recoded = g_strdup(str);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user