Close query window ON SPAM BOTS

By independentt on Jun 30, 2009

This will close the chat query window and ignore an user that spams you.

on &1:TEXT:*:?:{
if (*www*. iswm $1-) ignore.spam
if (*.com* iswm $1-) ignore.spam
if (*.net* iswm $1-) ignore.spam
if (*.ca* iswm $1-) ignore.spam
if (*.info* iswm $1-) ignore.spam
if (*.uk* iswm $1-) ignore.spam
if (*.biz* iswm $1-) ignore.spam
if (*.tk* iswm $1-) ignore.spam
if (*.ar* iswm $1-) ignore.spam
if (*.ag* iswm $1-) ignore.spam
}
alias ignore.spam { closemsg $nick | ignore -u120 $address($nick,2) }

Comments

Sign in to comment.
WorldDMT   -  Jul 01, 2009

you can replace $address($nick,2) by $wildsite and "closemsg" is old is "close" now

alias ignore.spam { close $nick | ignore -u120 $wildsite }
 Respond  
sk68   -  Jul 01, 2009

@Jethro_ Whats up with @? There arent any OPs in a query window o.0

 Respond  
Jethro   -  Jun 30, 2009

And once again:

on @*:TEXT:*:?: {
  var %x = /(http:\/\/\w+|www\.\w+)/i, %y = /\.(\w+){2,3}$/i
  if ($regex($1-,%x)) || ($regex($1-,%y)) {
    .close -m $nick | .ignore -u120 $wildsite
  }
}
 Respond  
independentt   -  Jun 30, 2009

on &1 means it'll work if you have 2 on text events in the same script :]

 Respond  
Cheiron   -  Jun 30, 2009

on &1:TEXT:*:?:{

what is that?? should be just on 1:TEXT etc or on *:TEXT etc

 Respond  
independentt   -  Jun 30, 2009

above code untested feel free to comment bugs

 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.