Basic Protections

By PoiXon on Apr 02, 2005

Basic Protections: Ban Protection, Kick-ban Protection, if Invite in the room is on, if theres a password on, deop Protection

on @*:ban:#: {
  if ($me isop #) {
    if ($banmask iswm $address($me,5)) && ($nick != $me) {
      mode # -b $banmask
      set -u3 %kick on
    }
  }
}
raw 471:*: {
  if (%flood3 == $null) {
    inc -u3 %flood3
    msg chanserv invite $2 $me
    join $2
    .timer 1 2 close -m ChanServ
    haltdef
  }
}
raw 473:*: {
  if (%flood2 == $null) {
    inc -u3 %flood2
    msg chanserv invite $2 $me
    join $2
    .timer 1 2 close -m ChanServ
    haltdef
  }
}
raw 475:*: {
  if (%flood == $null) {
    inc -u3 %flood
    msg chanserv invite $2 $me
    join $2
    .timer 1 2 close -m ChanServ
    haltdef
  }
}
on @*:kick:#: {
  if ($knick == $me) && (%kick == $null) {
    join $chan 
  }
  elseif ($knick == $me) && (%kick == on) {
    msg chanserv unban # $me 
    .timer 1 2 close -m ChanServ 
    .timer 1 2 join $chan
    haltdef
  }
}
on *:deop:#: {
  if ($opnick == $me) && ($nick != $me) {
    msg chanserv op # $me
  }
}

Comments

Sign in to comment.
PoiXon   -  Apr 02, 2005

lol, i think i would of banned em by then :P

 Respond  
h3lp   -  Apr 02, 2005

nice snippet you submit, but you may get excess flood if the user +o-o+o-o+o-o you you you.... :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.