Code:
on *:text:!mute*:#:{
 if ($nick isop $chan) || ($nick ishop $chan) {
    if ( !$2 ) { notice $nick You must specify a nick. | return }
    if ($2 isop $chan) || ($2 ishop $chan) return
    mode $chan +bb ~q: $+ $address($2,2)
    mode $chan -v $2 
    notice $nick $2 has been muted 
  }
  else notice $nick You must have op/hop status to use this command.
}
 

That should stop the script if the target nick is a Hop or Op.

Last edited by truguce; 21/08/07 11:48 PM.