}
}
//AUTOINVITE
- if((user->flags & USERFLAG_ISAUTHED) && !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;