Channelz
By: mikeos | Date: Aug 29 2006 13:48 | Format: PHP | Expires: never | Size: 1.32 KB | Hits: 1744
- on *:text:!channelz:#:{
- if ($level2 == yes) {
- set %chanz 1
- set %chanzz 1
- unset %chans
- var %i = 1
- while (%i <= $chan(0)) {
- if (%chanz [ $+ [ %chanzz ] ] == 10) {
- inc %chanzz
- }
- if (c !isincs $gettok($chan($chan).mode,1,32)) {
- inc %chanz [ $+ [ %chanzz ] ]
- set %chans [ $+ [ %chanzz ] ] $addtok(%chans [ $+ [ %chanzz ] ],$chan(%i) 12(1 $+ $iif(Q ison $chan(%i),Q,L) $+ 12)1,32)
- }
- elseif (c isincs $gettok($chan($chan).mode,1,32)) {
- inc %chanz [ $+ [ %chanzz ] ]
- set %chans [ $+ [ %chanzz ] ] $addtok(%chans [ $+ [ %chanzz ] ],$chan(%i) ( $+ $iif(Q ison $chan(%i),Q,L) $+ ),32)
- }
- inc %i
- }
- if (c !isincs $gettok($chan($chan).mode,1,32)) {
- var %x = 1
- while (%x <= %chanzz) {
- msg $chan 1,0(7Channels1) - ( $+ %chanz [ $+ [ %x ] ] $+ /10) %chans [ $+ [ %x ] ]
- inc %x
- }
- msg $chan 1,0(7Total Channels1) - ( $+ $chan(0) $+ /20)
- }
- elseif (c isincs $gettok($chan($chan).mode,1,32)) {
- var %x = 1
- while (%x <= %chanzz) {
- msg $chan (Channels) - ( $+ %chanz [ $+ [ %x ] ] $+ /10) %chans [ $+ [ %x ] ]
- inc %x
- }
- msg $chan (Total Channels) - ( $+ $chan(0) $+ /20)
- }
- }
- }
Latest pastes
55 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago