1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

unignore_time can not be NULL, check for 0 instead

This commit is contained in:
vague666 2020-03-18 17:27:18 +01:00
parent ca04e0ba5d
commit d5a55f5e6e

View File

@ -70,7 +70,7 @@ static void ignore_print(int index, IGNORE_REC *rec)
g_string_append_printf(options, "-network %s ", rec->servertag);
if (rec->pattern != NULL)
g_string_append_printf(options, "-pattern %s ", rec->pattern);
if (rec->unignore_time != NULL) {
if (rec->unignore_time != 0) {
ts = *localtime(&rec->unignore_time);
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", &ts);
g_string_append_printf(options, "ignore ends: %s ", buf);