about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLucentW <LucentW@users.noreply.github.com>2015-05-15 14:02:21 +0200
committerLucentW <LucentW@users.noreply.github.com>2015-05-15 14:02:37 +0200
commit93a872a36bca8880d1285ba0222a9294d513df91 (patch)
tree0cf9db7ab483a9d30519e40799f18f0704c7cd62 /src
parent03c8997af346badcd1c47c6c0c7f84daaa7f7852 (diff)
downloadngircd-93a872a36bca8880d1285ba0222a9294d513df91.tar.gz
ngircd-93a872a36bca8880d1285ba0222a9294d513df91.zip
Fix with oneshot invites
This should finally implement correctly oneshot invites sent via /INVITE
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/lists.c2
1 files changed, 1 insertions, 1 deletions
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);