echo -i=87 "0,1[on_connect] Hello from On Connect, starting..."; %BasenickL = "GhostBuster-"; // Base nick. %BasenickL .= $string($rand(9999)); // Random number. GhostBuster-XXXX used to login. echo -i=87 "0,1[on_connect] Now sending login nick - %BasenickL"; NICK %BasenickL; %Timeout1 = $unixtime; %Timeout1 += 3; echo -i=62 "0,1[on_connect] Delay debug: unixtime is $unixtime, timeout is %Timeout1"; for (%Icount1=0; %Icount1 < 1000000000; %Icount1++) { %Now1 = $unixtime; if ( %Now1 > %Timeout1) { echo -i=62 "0,1[on_connect] Delay debug: interuppted by condition, unixtime is $unixtime, now is %Now1, Timeout1 is %Timeout1 and Icount1 is %Icount1"; break; } } echo -i=87 "0,1[on_connect] On Connect finished!";