Channel Counter(Channel peak) Via !Count

By XpLoiTeR on Jan 09, 2006

Channel Counter is a few lines u can add to ur remotes and works great...write !count on a channel and watch it works :)

on *:INPUT:* {
  if ($1 == !count) && ($left($active,1) == $chr(35)) {
    msg $chan 2[4 $+ $chan $+ 2]4  4Has A Record Of 2[4 $+ ! $+ $nick($chan,0) $+ ! $+ 2]4 4Users.
    Halt
  }
}

Comments

Sign in to comment.
sladekraven   -  Mar 03, 2006

I always forget the simplest things and turn it into a nightmare for myself. Doh! Nice one. :)

 Respond  
xDaeMoN   -  Mar 03, 2006

@ Sladekraven, use $replace on your %status.

 Respond  
sladekraven   -  Mar 03, 2006

;Usage !count
;or
;!count [a|o|h|v|r]
;!count o - Counts the ops

On :Input:#: {
if (/
iswm $1) return $1-
if ($1 == !count) && (!$2) msg $chan $nick($active,0)
if ($1 == !count) && ($findtok(o a h v r,$2,1,32)) {
var %status = $iif($2 == o,Ops:,$iif($2 == a,Admin:,$iif($2 == h,Half Op:,$iif($2 == v,Voiced:,$iif($2 == r,Regular:)))))
msg $chan %status $nick($active,0,$2)
}
else { msg $chan $1- }
halt
}

 Respond  
bugyou   -  Mar 03, 2006

This is got to be the dumbest snippet ever. It shows only current user count, never \"peak count\", ie maximum number of users on channel. Besides, on input means that only you can use !count... and why on earth would you like to message the number of users to the channel?! And what is with the halt there?! Not to mention, where should the poor snippet get the $nick and $chan as this is private event?!

 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.