Hi raycomp,

Check if this is what you want:

In this way, the event will only be executed by ops with level 500:
Code
on ^*:text:*:#:{
  if ($1 == %c $+ delstats) && ($2) && ($level($address($nick,2)) == 500) {
    if ($nick isop $chan) {
      remove-stats-nick $network $+ @ $+ $chan $+ @ $+ $2
      .msg $chan Stats vir nick $2 is verwyder in opdrag van Eienaars
    }
  }
}


If you want all operators to have access to this event without an access level, then the code will look like this:
Code
on ^*:text:*:#:{
  if ($1 == %c $+ delstats) && ($2) && ($nick isop $chan) {
    remove-stats-nick $network $+ @ $+ $chan $+ @ $+ $2
    .msg $chan Stats vir nick $2 is verwyder in opdrag van Eienaars
  }
}


Last edited by TECO; 22/03/20 03:22 AM.

TECO
irc.PTirc.org (Co-Admin)