All pastes #416885 Raw Edit

Something

public text v1 · immutable
#416885 ·published 2007-03-30 15:37 UTC
rendered paste body
on *:JOIN:#: {
  if (%auto == off ) { notice $nick Welcome to $chan $+ , $nick ~ to invite me to your channel type /invite eyeball #YOURCHANNEL~ 
  }
  else mode $chan +v $nick | notice $nick Welcome to $chan $+ , $nick ~ to invite me to your channel type /invite eyeball #YOURCHANNEL~
}

alias channelstats {
  unset %chanstats.*
  set %servermax $scid(0)
  var %inc 1
  while (%inc <= %servermax) {
    var %n 1
    scid %inc
    set %chanstats.serverchans $chan(0)
    while (%n <= %chanstats.serverchans) {
      set  %chanstats.serverpeople $calc(%chanstats.serverpeople + $nick($chan(%n),0,a))
      set  %chanstats.servervoices $calc(%chanstats.servervoices + $nick($chan(%n),0,v))
      if ($me isop $chan(%n)) {
        %chanstats.servermypeons = $calc(%chanstats.servermypeons + $nick($chan(%n),0,a))
        inc %chanstats.opchans
        set  %chanstats.serverops $calc(%chanstats.serverops + $nick($chan(%n),0,o))
      }

      if ($me isvoice $chan(%n)) {
        inc %chanstats.voicechans
        %chanstats.servermanipulate = $calc(%chanstats.servermanipulate + $nick($chan(%n),0,a))
      }


      inc %n
    }

    set %chanstats.totalchans $calc(%chanstats.totalchans + %chanstats.serverchans)
    set %chanstats.totalpeople $calc(%chanstats.totalpeople + %chanstats.serverpeople)
    set %chanstats.totalops $calc(%chanstats.totalops + %chanstats.serverops)
    set %chanstats.totalmypeons $calc( %chanstats.totalmypeons + %chanstats.servermypeons)
    set %chanstats.totalmanipulate $calc( %chanstats.totalmanipulate + %chanstats.servermanipulate )
    set %chanstats.totalvoicechans $calc( %chanstats.totalvoicechans + %chanstats.voicechans)
    set %chanstats.totalopchans $calc( %chanstats.totalopchans + %chanstats.opchans)
    inc %inc
    unset %chanstats.voicechans
    unset %chanstats.opchans
  }
  if (%stats.display == msg) {
    msg $active I am opped in4 $chr(91) $+  $+ %chanstats.totalopchans $+ 4 $+ $chr(93) out of4 $chr(91) $+  $+ %chanstats.totalchans $+ 4 $+ $chr(93) on4 $chr(91) $+  $+ %servermax $+ 4 $+ $chr(93) servers
    msg $active I command4 $chr(91) $+  $+ %chanstats.totalmypeons $+ 4 $+ $chr(93) out of4 $chr(91) $+  $+ %chanstats.totalpeople $+ 4 $+ $chr(93) in there, of which4 $chr(91) $+  $+ %chanstats.totalops $+ 4 $+ $chr(93) have @ too
    msg $active I manipulate4 $chr(91) $+  $+ %chanstats.totalmanipulate $+ 4 $+ $chr(93) people in4 $chr(91) $+  $+ %chanstats.totalvoicechans $+ 4 $+ $chr(93) channels
  }
  else {
    echo -a I am opped in4 $chr(91) $+  $+ %chanstats.totalopchans $+ 4 $+ $chr(93) out of4 $chr(91) $+  $+ %chanstats.totalchans $+ 4 $+ $chr(93) on4 $chr(91) $+  $+ %servermax $+ 4 $+ $chr(93) servers
    echo -a  I command4 $chr(91) $+  $+ %chanstats.totalmypeons $+ 4 $+ $chr(93) out of4 $chr(91) $+  $+ %chanstats.totalpeople $+ 4 $+ $chr(93) in there, of which4 $chr(91) $+  $+ %chanstats.totalops $+ 4 $+ $chr(93) have @ too
    echo -a  I manipulate4 $chr(91) $+  $+ %chanstats.totalmanipulate $+ 4 $+ $chr(93) people in4 $chr(91) $+  $+ %chanstats.totalvoicechans $+ 4 $+ $chr(93) channels
  }
  unset %chanstats.*
}