We're running a version on join help script and we're looking to stop it replying if an op joins.

my first script was basic and version'd all

Code
on *:JOIN:#help: {
  set %.ch $chan
  CTCP $nick VERSION
}
on 1:CTCPREPLY:VERSION*:/onotice #help $nick is using IRC client: $2-


that works fine..

I then edited it to ...

Code
on *:JOIN:#help: {
  set %.ch $chan
  if ($nick isop $chan) { halt }
  else if ($nick !isop $chan)
  .timer 1 3 CTCP $nick VERSION
}
on 1:CTCPREPLY:VERSION*:/onotice #help $nick is using IRC client: $2- 


now on join .. i get the following error

Quote
-
* /if: insufficient parameters (line 4, script6)
-


could i have a fix please. I'm pretty sure this "used" to work on a lower series mirc.. but it will not work on my 7.57

Last edited by Orobas; 24/04/20 08:58 PM.