Hi guys
I'm here with a little problem.
I have this code:
Code
on ^*:rawmode:#:{
  if ($nick == $me) && (a isincs $1) {
    var %a = 1
    while (%a <= $len($1)) {
      var %c = $mid($1,%a,2)
      if (%c == +a) { inc %stat.admin }
      elseif (%c == -a) { inc %stat.deadmin }
      inc %a
    }
  }

This code is used to account the nicknames to which I give or take out mode +a, but it only works with one nick. If it is in multi-nickname it only counts one in it.

Example:
Quote
TECO sets mode [+a James]


In the following example it does not work correctly:
Quote
TECO sets mode [-aa James mIRC]

Is there anyone who can help me solve this?
Thank you! wink


TECO
irc.PTirc.org (Co-Admin)