Hmm seems u have some unneeded code and no flood protection as well.Heres a simple redo if you will added $strip (so you can use color) and made it one text event and flood protection and it wont trigger if you havent been invited.
on *:invite:#: {
inc -u10 $+(%,_IN_F,.,$nick) 1
if ($($+(%,_IN_F,.,$nick),2) == 2) { .msg $nick Please do NOT flood me. | close -m $nick | unset %invite %invite_chan | halt }
if ($($+(%,_IN_F,.,$nick),2) >= 3) { halt }
set %invite on
set %invite_chan $chan
.msg $nick You have chosen to use $me If you wish to use the bot then you need to agree to the rules of usage
.msg $nick Rules: Do not spam $me, Do not P,M $me as it will not answer (It is a Bot) and do not under any Circumstances Flood $me $+ .
.msg $nick if you agree type yes and i will join %invite_chan $+ ,if not type no to end this session.
}
on *:text:*:?:{
if (%invite == On) && ($strip($1) == No) {
msg $nick u responded no good bye..
unset %invite %invite_chan
close -m $nick
}
if (%invite == On) && ($strip($1) == Yes) {
.timer 1 2 msg $nick joining %invite_chan now...
.timer 1 4 join %invite_chan
unset %invite %invite_chan
close -m $nick
}
}
Lemme know should work fine.And this is a good idea for bots that u dotn want to have auto join on invite.`-.-´