Simple PM filter

By Ghost-lit Warder on Aug 15, 2007

A pretty simple PM filter I made while bored. Go to the Menubar and you'll see the Filter options etc. Everything else is self explanatory from there. Feedback is highly appreciated.

#Blockspam On
ON ^*:OPEN:?: {
  if ($read(Filterwords.txt) iswm $1-) {
    ignore -u60 $nick 
    notice $nick Ignored. Please stop spamming my Private Messages. 
  }
  elseif ($readini(filter.ini,blockeduser,$nick) == enemy) {
    msg $nick You are marked as a blocked nick. This Private Message is being closed.
    close -m $nick
  }
  haltdef
}
on ^*:TEXT:*:?:{
  if ($read(Filterwords.txt) iswm $1-) {
    ignore -u60 $nick 
    notice $nick Ignored. Please stop spamming my Private Messages. 
  }
}
#Blockspam End

Menu Menubar {
  Enable Spamfilter:enable #blockspam
  Disable Spamfilter:disable #blockspam
  Filter Options:
  .Block a nick:writeini Filter.ini Blockeduser $$?="Enter blocked nick:" enemy
  .Remove blocked nick:remini Filter.ini Blockeduser $$?="Enter removed nick:" $1-
  .-
  .Add a word:abword
  .Delete a word:rbword
}
alias rbword {
  if ($read(filterwords.txt) == $null) { halt }
  write -ds filterwords.txt $$?="Enter removed word:"
}

alias abword { 
  write Filterwords.txt $?="Enter blocked word:"
} 

Comments

Sign in to comment.
Anti   -  Aug 16, 2007

if i could rate id rate 5.2 ;) im going to start posting right now hehehehe! until 25.. posts.

 Respond  
Ghost-lit Warder   -  Aug 16, 2007

Thanks. :)

 Respond  
guest598594   -  Aug 16, 2007

good job

 Respond  
Ghost-lit Warder   -  Aug 16, 2007

Thank you. ^_^

 Respond  
Anti   -  Aug 16, 2007

:P nice work btw.

 Respond  
Ghost-lit Warder   -  Aug 16, 2007

lol.

 Respond  
Anti   -  Aug 16, 2007

heh i\'d just ingore them my self or i\'d just turn on a timer saying FLODDAGE for about 10 minutes then stop .. heheheheh

 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.