repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 93a872a36bca8880d1285ba0222a9294d513df91:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 93a872a36bca8880d1285ba0222a9294d513df91
Author: LucentW 
Date:   Fri May 15 14:02:21 2015 +0200

    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 8cbe20819f40f72a42847f62fc6ca984e5a7bd18..
index ..a091addb26860ed703c40ddc25eb5c0c65f1d582 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);

-----END OF PAGE-----