1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #1161 from vague666/ignore_readable_time

unignore_time can not be NULL, check for 0 instead
This commit is contained in:
ailin-nemui 2020-03-18 19:53:55 +01:00 committed by GitHub
commit aab5349256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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