]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/lists.c
First check if channel has mode "N", then check membership
[ngircd-alex.git] / src / ngircd / lists.c
index 2ca67e9d444079c00952926a289d6cc1f8a27fcc..a091addb26860ed703c40ddc25eb5c0c65f1d582 100644 (file)
@@ -125,7 +125,7 @@ Lists_GetNext(const struct list_elem *e)
  */
 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;
 
@@ -344,7 +344,7 @@ Lists_CheckReason(struct list_head *h, CLIENT *Client, char *reason, size_t len)
                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);