Personal Flood Pro

By Crushed on Sep 15, 2010

this snippet set +silence on Flood.

on *:open:?:*:{
  inc -u3 %msg.floodpro 1
  if (%msg.floodpro == 3) {
    echo -as Message Flood Detected, Activating Silence for 2 minutes.
    silence +*!*@*
    timerunsilence 1 120 silence -*!*@*
    close -m
  }
}

on *:notice:*:?:{
  if (%notice.floodpro.nick != $nick) {
    inc -u3 %notice.floodpro 1
  }
  if (%notice.floodpro == 3) { 
    echo -as Notice Flood Detected, Activating Silence for 2 minutes.
    silence +*!*@*
    timerunsilence 1 120 silence -*!*@*
  }
  set %notice.floodpro.nick $nick
}

ctcp *:*:?:{
  if (%ctcp.floodpro.nick != $nick) {
    inc -u3 %ctcp.floodpro 1
  }
  if (%ctcp.floodpro == 3) { 
    echo -as CTCP Flood Detected, Activating Silence for 2 minutes.
    silence +*!*@*
    timerunsilence 1 120 silence -*!*@*
  }
  set %ctcp.floodpro.nick $nick
}

on *:invite:#:{
  if (%invite.floodpro.nick != $nick) {
    inc -u3 %invite.floodpro 1
  }
  if (%invite.floodpro == 3) { 
    echo -as Invite Flood Detected, Activating Silence for 2 minutes.
    silence +*!*@*
    timerunsilence 1 120 silence -*!*@*
  }
  set %invite.floodpro.nick $nick
} 

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.