As i wrote befor i know it joins the channel 2 times, if the channel is keyed "+k", then i got the message:
#channel unable to join channel (need correct key)
and if it comes 2 times, then the script trying to join, and using the echo "as i did befor i posted here", then i got %chan echo'ed to me 2 times, and the problem must be here "if (%x <= %xx) { goto loop }", it looking if %x is lower value then %xx , and i only guess that it check if it's lower, and if it's not, then it do one extra loop and that cosing the problem, i also tested == instead of <=, same problem there. so dunno how to fix it.. and thnx for the answers, i will look at the codes pasted here and try to understand what everything does..
