WorldDMT commented on a Page, Channel Stats Count  -  May 18, 2009

hi

/help $nick

$nick(#,N/nick,aohvr,aohvr)

a = all nicks, o = ops, h = halfops, v = voiced, r = regular

$nick(#chan,0,o) return the total number of ops on #chan

$nick(#chan,1,o) return the first op on #chan

$nick(#chan,0,a,o) return the total number of nicks not including ops on #chan

so your code can be

menu channel {
  Channel Stat:msg # $count
}
alias -l per return $round($calc( $1 / $nick(#,0) * 100),0) $+ %
alias count {
  var %all $nick(#,0),%op $nick(#,0,o),%v $nick(#,0,v),%reg $nick(#,0,r)
  return 4[ $+ total user in $remove($chan,$chr(35)) %all $+ 4] 12( $+ %op op = $per(%op) $+ 12) 12( $+ %v voice = $per(%v) $+ 12) 12( $+ %reg regular = $per(%reg) $+ 12)
}
 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.