mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-25 02:57:38 +00:00
List expiration: use same log level as when setting
And log this event to the &SERVER channel, too.
This commit is contained in:
@@ -381,11 +381,11 @@ Lists_Expire(struct list_head *h, const char *ListName)
|
|||||||
if (e->valid_until > 0 && e->valid_until < now) {
|
if (e->valid_until > 0 && e->valid_until < now) {
|
||||||
/* Entry is expired, delete it */
|
/* Entry is expired, delete it */
|
||||||
if (e->reason)
|
if (e->reason)
|
||||||
Log(LOG_INFO,
|
Log(LOG_NOTICE|LOG_snotice,
|
||||||
"Deleted \"%s\" (\"%s\") from %s list (expired).",
|
"Deleted \"%s\" (\"%s\") from %s list (expired).",
|
||||||
e->mask, e->reason, ListName);
|
e->mask, e->reason, ListName);
|
||||||
else
|
else
|
||||||
Log(LOG_INFO,
|
Log(LOG_NOTICE|LOG_snotice,
|
||||||
"Deleted \"%s\" from %s list (expired).",
|
"Deleted \"%s\" from %s list (expired).",
|
||||||
e->mask, ListName);
|
e->mask, ListName);
|
||||||
Lists_Unlink(h, last, e);
|
Lists_Unlink(h, last, e);
|
||||||
|
|||||||
Reference in New Issue
Block a user