mIRC Snippets
Name:Channel Stats
Description: Display some statistics of current active channel.
Code below...
>
;**********************************
;Type in /chanstats
;Make sure active window is a channel
;************************************
alias chanstats {
if ($active == $chan) {
var %c = $chan
echo -a $str(=,50)
echo -a Channel Statistics for %c / Mode: $chan(%c).mode
echo -a Total Users: $nick(%c,0) / $iif($chan(%c).limit,$chan(%c).limit,No Limit Set)
echo -a Op(s): $nick(%c,0,o)
echo -a Halfop(s): $nick(%c,0,h)
echo -a Voice(s): $nick(%c,0,v)
echo -a Regular(s): $nick(%c,0,r)
echo -a $str(=,50)
}
else { echo -a Current active window is not a channel! }
}
<
;Type in /chanstats
;Make sure active window is a channel
;************************************
alias chanstats {
if ($active == $chan) {
var %c = $chan
echo -a $str(=,50)
echo -a Channel Statistics for %c / Mode: $chan(%c).mode
echo -a Total Users: $nick(%c,0) / $iif($chan(%c).limit,$chan(%c).limit,No Limit Set)
echo -a Op(s): $nick(%c,0,o)
echo -a Halfop(s): $nick(%c,0,h)
echo -a Voice(s): $nick(%c,0,v)
echo -a Regular(s): $nick(%c,0,r)
echo -a $str(=,50)
}
else { echo -a Current active window is not a channel! }
}
<