mIRC Home    About    Download    Register    News    Help

Print Thread
#125772 21/07/05 05:00 PM
Joined: Apr 2005
Posts: 38
J
juble Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Apr 2005
Posts: 38
hi fellows
i need a simply anti-spam "on text" for query's spam words
like "www" "com" etc
when someone say those words to close the query window and to ignore him
thanks for advance

#125773 21/07/05 05:16 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
In the case of spam it's usually better to use the ON OPEN event, as most spam is automated from infected users or spam drones that will message you when you join a channel, speak on a channel or mention their nickname. Generally, someone wouldn't spam you on the 2nd or 3rd line of a private message.

You can halt private messages using the ^ prefix on the event, and an if statement to check what is inside the message. For example,

on ^*:open:?:*:{
if (*http://* iswm $1-) || (*www* iswm $1-) {
.msg $nick Spam detected, ignored message
.ignore -p300 $nick 3
halt
}
}


On top of halting the message, the above would message the user that their spam has been ignored, and add them to your ignore list for 300 seconds (5 minutes).

This would be placed in your remote, ALT+R > File > New.

For further help you could refer to the following help files:
/help halting default text
/help ON OPEN
/help if then else


Regards,


Mentality/Chris
#125774 21/07/05 05:35 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
In my experiance most spam bots join a channel, spam in PM all the nicks in the nicklist (the reason the bot joins is to get the nicklist), and leave. Some join a channel, idle a moment (waiting for the server to send the nicklist) before leaving and then spam those in the channel.
This will ignore the bot from the join/part in either case.

put into a remote file

on *:JOIN:#:{ .ignore -pntidu320 $nick }
on *:part:#:{ .ignore -pntidu320 $nick }

This will stop any PM posts except to the channel, but spambots that do channel messages are less frequent.

#125775 21/07/05 06:09 PM
Joined: Apr 2005
Posts: 38
J
juble Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Apr 2005
Posts: 38
thanks guys
both of u !

#125776 21/07/05 06:10 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Though sometimes legitimate PMs are done in that first 320 seconds. I know I'd personally rather just close any window with that information. Just my preference. laugh


Invision Support
#Invision on irc.irchighway.net
#125777 21/07/05 10:34 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I have it set in a group so I can turn it off, I also have a message blocker that you add people who can bypass the block which is what I usually have on.

#125778 22/07/05 01:14 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ah, ok. That makes sense, then. smile


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard