*/
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);