Query Blocker

By CodeProphet on Mar 29, 2007

with this right here u can accept/reject query'z and also protect yourself from query flooding , hope u like it :=D

on *:OPEN:?:*:{
  if ($level($nick) != autoaccept) {
    .window -h $nick
    .timer 1 .1 acceptornot $nick 
  }
  inc -u1 %query.flood
  if (%query.flood > 6) { closemsg $nick | .ignore -u120 $wildsite | .linesep $active | echo -a *** possible flood attempt with more than 10 query's opened in less than 1 second, if you think that $+(",$nick,") isnt a flooder type /ignore -r $wildsite . | .linesep $active }
}
alias acceptornot {
  if ($$?!"accept query from $1 ?") { window -w $1 | halt }
  else { closemsg $1 | .linesep $active | echo -a *** $1 has been ignored for 2 minutes, if u have changed your mind just type /ignore -r $1 2 | .ignore -u120 $1 2 | halt }
}
menu query,nicklist {
  -
  Auto Query Accept
  .Add $1 ? :/.auser autoaccept $1 | .linesep -a | echo -a *** $1 Has Been Added To You Auto Accept Query List. | .linesep -a | .notice $1 You Have Been Added To My Auto Accept Query List.
  .-
  .Delete $1 ?:/.ruser $1 | .linesep -a | echo -a *** $1 Has Been Removed From You Auto Accept Query List. | .linesep -a | .notice $1 You Have Been Removed From My Auto Accept Query List.
}

Comments

Sign in to comment.
DarkDaemon   -  Nov 06, 2007

ew

 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.