From dd79cf5ee2e63facd68dc6e8f931d1813f02400b Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 10 Dec 2011 04:48:49 +0100 Subject: [PATCH] fixed autoinvite feature: we need to check if the user is authed --- src/event_neonserv_join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event_neonserv_join.c b/src/event_neonserv_join.c index f307b42..c38cddd 100644 --- a/src/event_neonserv_join.c +++ b/src/event_neonserv_join.c @@ -172,7 +172,7 @@ static void neonserv_event_join_async1(struct ClientSocket *client, struct ChanU } } //AUTOINVITE - if(!chanuserrow || !strcmp(chanuserrow[3], "0") || time(0) - atol(chanuserrow[3]) >= 30) { + if((user->flags & USERFLAG_ISAUTHED) && !chanuserrow || !strcmp(chanuserrow[3], "0") || time(0) - atol(chanuserrow[3]) >= 30) { //check if it's the first channel, the user is seen by the bot (IMPORTANT: ignore other bot's channel!) char first_chan = 1; char bot_in_chan; -- 2.20.1