projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4f47d
)
fixed autoinvite feature: we need to check if the user is authed
author
pk910
<philipp@zoelle1.de>
Sat, 10 Dec 2011 03:48:49 +0000
(
04:48
+0100)
committer
pk910
<philipp@zoelle1.de>
Sat, 10 Dec 2011 03:48:49 +0000
(
04:48
+0100)
src/event_neonserv_join.c
patch
|
blob
|
history
diff --git
a/src/event_neonserv_join.c
b/src/event_neonserv_join.c
index f307b42a630de25959bc6c5ce6d7152cfb07ff31..c38cdddae487c8197916f872e7dee4644d2c1ff5 100644
(file)
--- 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;