I have a channel stats script that works fine except that no one can delete stats for a user based on this;

Quote

IF ($1 == %c $+ delstats) && ($2) && ($level($address($nick,2)) == 500) {
remove-stats-nick $network $+ @ $+ $chan $+ @ $+ $2
.msg $chan Stats vir nick $2 is verwyder in opdrag van Eienaars
}


I want to give that to all ops something like if

Quote

IF ($1 == %c $+ clearstats) && ($nick isop $chan) {


Only that does not work probably the $nick Should be the ops nick to clear the stats. I have also tried to change the 500 to 100


Any ideas please