*/
bool
Lists_Add(struct list_head *h, const char *Mask, time_t ValidUntil,
- const char *Reason, bool OnlyOnce = false)
+ const char *Reason, bool OnlyOnce)
{
struct list_elem *e, *newelem;
if (MatchCaseInsensitive(e->mask, Client_MaskCloaked(Client))) {
if (len && e->reason)
strlcpy(reason, e->reason, len);
- if (e->valid_until == 1) {
+ if (e->onlyonce) {
/* Entry is valid only once, delete it */
LogDebug("Deleted \"%s\" from list (used).",
e->mask);
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);