From 8b772ff6ec44e391906c17360f7dbaea179c0d88 Mon Sep 17 00:00:00 2001 From: Valentin Batz Date: Mon, 20 Dec 2004 15:06:29 +0000 Subject: [PATCH] Fixed target handling in recode_out git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3693 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/recode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/recode.c b/src/core/recode.c index 78d0be55..e073169e 100644 --- a/src/core/recode.c +++ b/src/core/recode.c @@ -147,9 +147,9 @@ char *recode_out(const SERVER_REC *server, const char *str, const char *target) g_strdup_printf("%s/%s", server->tag, target); if (tagtarget != NULL) to = iconfig_get_str("conversions", tagtarget, NULL); - else - to = iconfig_get_str("conversions", target, NULL); g_free(tagtarget); + if (to == NULL || *to == '\0') + to = iconfig_get_str("conversions", target, NULL); if (to == NULL || *to == '\0') /* default outgoing charset if set */ to = settings_get_str("recode_out_default_charset");