1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Do not call iconfig_get_str when target is NULL.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4487 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-05-06 16:22:09 +00:00 committed by exg
parent 6f9dbc794d
commit 2b2b904ada

View File

@ -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);