mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04: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:
parent
6f9dbc794d
commit
2b2b904ada
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user