diff options
author | Valentin Batz <senneth@irssi.org> | 2004-12-20 15:06:29 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-12-20 15:06:29 +0000 |
commit | 8b772ff6ec44e391906c17360f7dbaea179c0d88 (patch) | |
tree | 9191d446591d3c94fe1c1bba62fdd5ce41ece43d /src | |
parent | 7be7dd374c23054f379fdf8361b31d3f658953c0 (diff) | |
download | irssi-8b772ff6ec44e391906c17360f7dbaea179c0d88.zip |
Fixed target handling in recode_out
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3693 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/recode.c | 4 |
1 files 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,10 +147,10 @@ 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"); |