Simple Private Spam Blocker

By forgotten on Feb 26, 2005

This small snippet basically stops spam messages coming from people in private messages (queries). It will auto ignore the offender for 60 seconds, and write to spam.log in the mirc directory the event. You will have the option of removing the user from ignore by pressing f11. Any help needed, just find me on IrCQnet (irc.icq.com) under the nick forgotten, in #smile
enjoy ;P

on ^*:open:?:*:{
  if (http:// isin $1- || www. isin $1- || .co isin $1- || $chr(35) isin $1-) {
    set %nick $nick
    .enable #f11toremove
    .timerremoveignoff 1 20 .disable #f11toremove
    r.echo Spam detected ( $+ $nick $+ $remove($address($nick,0),*) $+ ) (Ignored for 60s) - $time - $date 15||| Press f11 to remove user from ignore.
    if ($isfile("spam.log") == $false) {
      write -c "spam.log"
    }
    write "spam.log" $date - $time - $nick ( $+ $address $+ ): $1-
    .msg $nick Spam detected ( $+ $nick $+ $remove($address($nick,0),*) $+ ) (Ignored for 60s) - $time - $date
    .ignore -u60 $nick
    haltdef
  }
}
#f11toremove off
alias f11 {
  ignore -r %nick
  r.echo Removed %nick from ignore list!
  unset %nick
  .disable #f11toremove
}
#f11toremove END

Comments

Sign in to comment.
forgotten   -  Jul 22, 2005

Hmm lol very good point ixezion :P i did think about that. :P might use picture windows and hash tables instead of dialogs ;) i\'ll see :P just been busy workin on my script :/ lol forgot to backup and pc messed up sigh thx for your comment tho :D

 Respond  
IXeZion   -  Feb 28, 2005

Well, I bet it works, but what if this happens two times.. Then the user have to do it manually..

 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.