List expiration: use same log level as when setting
authorAlexander Barton <alex@barton.de>
Wed, 7 Dec 2016 23:20:36 +0000 (00:20 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 7 Dec 2016 23:20:38 +0000 (00:20 +0100)
And log this event to the &SERVER channel, too.

src/ngircd/lists.c

index a091add..b842ec8 100644 (file)
@@ -381,11 +381,11 @@ Lists_Expire(struct list_head *h, const char *ListName)
                if (e->valid_until > 0 && e->valid_until < now) {
                        /* Entry is expired, delete it */
                        if (e->reason)
-                               Log(LOG_INFO,
+                               Log(LOG_NOTICE|LOG_snotice,
                                    "Deleted \"%s\" (\"%s\") from %s list (expired).",
                                    e->mask, e->reason, ListName);
                        else
-                               Log(LOG_INFO,
+                               Log(LOG_NOTICE|LOG_snotice,
                                    "Deleted \"%s\" from %s list (expired).",
                                    e->mask, ListName);
                        Lists_Unlink(h, last, e);