Greetings
I put this together to return a random nick, but i added the r parameter that it should return only regular nicks on a channel, but for some reason its returning ops on a channel aswell, i dont want to add a bunch of if statements as it will make the code a little messy. Any help would be appreciated.
Thankyou

Code:
/randnick {
  var %randname = $nick($chan,$rand(1,$nick($chan,0,r)))
  if (%randname != $me) {
    return %randname
  }
}


Newbie