Scakk commented on a Page, Admin checker  -  Oct 01, 2008

This does the same thing and uses the current channel as default.

alias check {
  if ($active ischan) { 
    var %a $pos(+%@&~,$left($nick($chan,$1).pnick,1),1)
    return $iif(%a,%a,$null)
  }
}
on *:TEXT:*:#: {
  if ($1 == !testing) {
    if ($check($nick) == 5) { msg $chan You are owner of the chan }
    if ($check($nick) == 4) { msg $chan You are Admin on the chan }
    if ($check($nick) == 3) { msg $chan You are an Op this chan }
    if ($check($nick) == 2) { msg $chan You are Half-Op }
    if ($check($nick) == 1) { msg $chan You have just a voice here }
    if (!$check($nick)) { msg $chan You dont have any status in this chan or you must login }
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.