Hello all.
I am using the code below in my Remote scripts to auto-op users when they join my channel. Some of the people who join are registered users and receive +o from ChanServ. I want ChanServ's +o event to happen before my script attempts to +o them. Is there any way to add a 2 second delay inbetween the user joining and my script attempting to give them +o? That way, ChanServ will be able to give them +o within the 2 second delay.
on *:JOIN:#channel:{
if ($nick == $me) { halt }
if ($me isop $chan) {
notice $nick 12Welcome to $chan $nick $+ !
mode $chan +o $nick }
}
Thanks,
Lettuce
*edit* I should add I am not a coder or have any coding knowledge. I found the above code by Googling. I am looking for someone to kindly tell me what the complete code should look like, with the addition (if possible) of a time delay. Thanks in advance.
Last edited by Lettuce; 03/05/13 08:46 AM.