MeMO Input Akill Script For IPs

By MaSt3R on Dec 12, 2012

Command for add IP tO Akill List: .Akill ADD
Command For Del Ip From Akill List: .Akill Del
Command For Show List: .Akill List
Command For Clear List: .Akill Clear

on *:input:*:{
  if ($1 == .akill) {
    if ($2 == add) {
      if ($istok(%go.akill, $3, 32)) { echo -a ( $+ $3 $+ ) Is Allready On Akill List. | halt }
      set %go.akill $addtok(%go.akill, $3, 32)
      .echo -a This IP " $+ $3 $+ " is Now added to Akill List.
    }
  }
  if ($1 == .akill) {
    if ($2 == del) {
      if (!$istok(%go.akill, $3, 32)) { echo -a ( $+ $3 $+ ) Is'nt Akill List! | halt }
      else {
        set %go.akill $remtok(%go.akill, $3, 32)
        .echo -a This IP " $+ $3 $+ " is Now Deleted From Akill List.
      }
    }
  }
  if ($1 == .akill) {
    if ($2 == list) {
      if (!%go.akill) { echo -a Error: Akill List Is Empty! | halt }
      else {
        .echo -a Akilled LiSt is: %go.akill
      }
    }
  }
  if ($1 == .akill) {
    if ($2 == clear) {
      unset %go.akill
      .echo -a Akill List is Now Cleared! 
    }
  }
}
on *:snotice:*client connecting*:{
  if ($remove($gettok($10,2,64),$chr(41)) isin %go.akill) {
    .kill $9 AKILLED!
  }
}

Comments

Sign in to comment.
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.