mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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:
commit
aab5349256
@ -70,7 +70,7 @@ static void ignore_print(int index, IGNORE_REC *rec)
|
|||||||
g_string_append_printf(options, "-network %s ", rec->servertag);
|
g_string_append_printf(options, "-network %s ", rec->servertag);
|
||||||
if (rec->pattern != NULL)
|
if (rec->pattern != NULL)
|
||||||
g_string_append_printf(options, "-pattern %s ", rec->pattern);
|
g_string_append_printf(options, "-pattern %s ", rec->pattern);
|
||||||
if (rec->unignore_time != NULL) {
|
if (rec->unignore_time != 0) {
|
||||||
ts = *localtime(&rec->unignore_time);
|
ts = *localtime(&rec->unignore_time);
|
||||||
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", &ts);
|
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", &ts);
|
||||||
g_string_append_printf(options, "ignore ends: %s ", buf);
|
g_string_append_printf(options, "ignore ends: %s ", buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user