/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* Get IRC mask stored in list element.
*
- * @param list_elem List element.
+ * @param e List element.
* @return Pointer to IRC mask
*/
GLOBAL const char *
/**
* Get optional "reason" text stored in list element.
*
- * @param list_elem List element.
+ * @param e List element.
* @return Pointer to "reason" text or empty string ("").
*/
GLOBAL const char *
/**
* Get "validity" value stored in list element.
*
- * @param list_elem List element.
+ * @param e List element.
* @return Validity: 0=unlimited, >0 until this time stamp.
*/
GLOBAL time_t
/**
* Get "onlyonce" value stored in list element.
*
- * @param list_elem List element.
+ * @param e List element.
* @return True if the element was stored for single use, false otherwise.
*/
GLOBAL bool
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);