From: LucentW Date: Fri, 15 May 2015 12:02:21 +0000 (+0200) Subject: Fix with oneshot invites X-Git-Tag: rel-23-rc1~28^2 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=93a872a36bca8880d1285ba0222a9294d513df91 Fix with oneshot invites This should finally implement correctly oneshot invites sent via /INVITE --- diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c index 8cbe2081..a091addb 100644 --- a/src/ngircd/lists.c +++ b/src/ngircd/lists.c @@ -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);