All pastes #728438 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-07 00:01 UTC
rendered paste body
on ^*:notice:*:#:{
  if ($nick != $me) {
    if (!$halted) {
      var %o = $strip($1-)
      if ($isachl(%o)) && (%pprot.highlightflood) { checkpp highlightflood }
      if (%pprot.spam) && (($regex(%o,/#.+|www\..+\..+|http.//.+\..+|a.?s.?l\??/i)) || ($count($1-,,,,) > 4)) && ($prot.exclps($fulladdress)) { pprot.dotrig spam }
      if (%pprot.noticeflood) { checkpp noticeflood }
      if ($balloon.trig(n)) { npop Incoming channel notice! $+($iif($scid(0) > 1,$nbr($curconserv)),-,$nick,:,$chan,-) $1- }
    }
    if ($cprot.chkst($nick,$chan)) && (%cprot. [ $+ [ %cprot.curchan ] $+ ] .noticeflood) { cprot.dchk noticeflood }
  }
}
on ^*:notice:*:?:{
  var %o = $strip($1-)
  if ($nick == NickServ) && ((*/msg nickserv identify* iswm %o) || (*/nickserv identify* iswm %o) || (*/ns identify* iswm %o)) {
    tokenize 32 %nsset. [ $+ [ $network ] ]
    if ($4) && ($5 == $me) { $iif($1,!.nickserv,!.msg nickserv) identify $decode($4) }
  }
  if ($nick != $me) && (!$halted) {
    if ($isachl(%o)) && (%pprot.highlightflood) { checkpp highlightflood }
    if (%pprot.spam) && (($regex(%o,/#.+|www\..+\..+|http.//.+\..+|a.?s.?l\??/i)) || ($count($1-,,,,) > 4)) && ($prot.exclps($fulladdress)) { pprot.dotrig spam }
    if (%pprot.noticeflood) { checkpp noticeflood }
    if ($balloon.trig(n)) { npop Incoming notice! $+($iif($scid(0) > 1,$nbr($curconserv)),-,$nick,-) $1- }
  }
  elseif ($regex($1-,^LAGCHK \d+$)) {
    var %t = $nnticks - $2
    if ($window(@lagbar)) {
      var %h = %laghistory. [ $+ [ $cid ] ]
      if ($cid == $activecid) {
        if (%tb.vlag) { toolbar.dlag %t }
        toolbar.refinfo
      }
      if ($len(%h) >= 700) || ($numtok(%h,32) >= 100) { set %laghistory. $+ $cid %t $deltok(%h,-1,32) }
      else { set %laghistory. $+ $cid %t %h }
    }
    haltdef
  }
}