12 March 2012

Anti Spin

On *:rawmode:#: {
  if ($len($1) > 2) && ($me isin $2-) {
    inc -u3 %safety
    if (%safety == 2) { cs deop $chan $nick | .timerop 1 0 .cs op $chan $me }
    if ($1 == +o) && ($2 == $me) && (%safety) { .timerkick 10 0 mode $chan -o+o-o+o-o+o $str($nick $chr(32),$modespl) | .timerkec 1 1 kick $chan $nick spin protection }
    if ($right($1,2) == +o) && ($me isin $2-) && (%safety == 2) { .timerkick 10 0 mode $chan -o+o-o+o-o+o $str($nick $chr(32),$modespl) | kick $chan $nick spin protection }
  }
}

No comments: