I've got an mirc script for a helpdesk bot. The main function of this is to monitor how many people are in helpdesk vs how many poeple are voiced and how many people in there are server operators.

The bot will then give the user joining an approximate waiting time, and will also tell them which number they are in line.

However, I can't figure out how to stop it messaging server operators when they join the helpdesk.

The script that deals with this is as follows:

Code:
on !*:JOIN:%help.chan: {
  timer 1 5
  whois $nick
  if ($nick isop $chan) halt
  if ( $readini(uhelp.ini,config,stat) ) {
    writeini uhelp.ini $chan $_n1($nick) help
    .notice $nick Please wait for your turn as we are busy right now. You will be voiced automaticly when we finish with the current guests. You are number $ini(uhelp.ini,$chan,0) in line. Thank You
  }
}
 


I've tried it with isop and isoper, but neither of these are working correctly.

At the moment it messages everyone that joins, whether or not they are an operator.

Last edited by CSC2YA; 01/06/09 03:06 PM.