mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
unignore_time can not be NULL, check for 0 instead
This commit is contained in:
parent
ca04e0ba5d
commit
d5a55f5e6e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue