summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/recode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/recode.c b/src/core/recode.c
index aadc09b2..d8692ea9 100644
--- a/src/core/recode.c
+++ b/src/core/recode.c
@@ -188,7 +188,7 @@ char *recode_out(const SERVER_REC *server, const char *str, const char *target)
to = iconfig_get_str("conversions", tagtarget, NULL);
g_free(tagtarget);
}
- if (to == NULL || *to == '\0')
+ if ((to == NULL || *to == '\0') && target != NULL)
to = iconfig_get_str("conversions", target, NULL);
if ((to == NULL || *to == '\0') && server != NULL)
to = iconfig_get_str("conversions", server->tag, NULL);