What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Simple Anti-Spam

Simple Anti-Spam
Author: Message:
kilouco
New Member
*


Posts: 5
Joined: Feb 2007
O.P. Simple Anti-Spam
Hello... i was wondering if there are a way to make a script that trasnform a msg like this:

n00b says:
UAIEheoaihAEIOheauioeaHiouEAHioAEUhEAIOUheAI
OueHueioaheAIUOheIuoheAiuoeAHiuoeaheaUIOhAE
IuohAEiuoeAHiuoeAheAIOUheaIOUhEAIOuAEHioueaH
iEAUOheAIOUhEAOIUehaiuoeaHiouaEHieoaUhei

in:

n00b says:
i am stupid, and i am trying to spam you.

the script should recognize messages with more than xxx characters and transform it on a simple "i am stupid"

i need this script because spams make my msn crash...
tnx :D

This post was edited on 02-19-2007 at 04:39 AM by kilouco.
02-19-2007 04:37 AM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Simple Anti-Spam
code:
var maxchars = 100;//Edit the maximum number of charaters here
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
    if(Message.length >= maxchars)
        Message = "I am stupid, and am trying to spam you";
    return Message;
}

Not tested but should work fine :)
02-19-2007 05:10 AM
Profile E-Mail PM Web Find Quote Report
kilouco
New Member
*


Posts: 5
Joined: Feb 2007
O.P. RE: Simple Anti-Spam
i'll test, very tnx
02-19-2007 05:34 AM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: Simple Anti-Spam
Just note that if YOU send more than X characters, it'll replace your message too!

To avoid this, you should check if the Origin is your name. If it isn't, it should replace it, otherwise it should leave it. However, if you're using StuffPlug 3's chat-only name, this won't work and will also replace your message anyway. And therefore, please check out CookieRevised's reply to [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin, where CookieRevised describes how to check if you're using a chat-only name and if necessary, check your chat-only name instead of your actual name. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-19-2007 10:25 AM
Profile E-Mail PM Web Find Quote Report
kilouco
New Member
*


Posts: 5
Joined: Feb 2007
O.P. RE: Simple Anti-Spam
yeah, i found this bug, but I am really n00b on this.
It should be C++ xD

i made the script... but i got another problem.
how can I make a mirror of the message of the spammer?

(he get back the msg)

This post was edited on 02-19-2007 at 08:34 PM by WDZ.
02-19-2007 02:04 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Simple Anti-Spam
kilouco,

May I strongly note that using such a script must be done in a very carefull way...

Who says that the long message your contact is sending you is some crap text? The contact might very well enter some very senseable question or whatever to you and you wouldn't know it. And your contact wouldn't know it either.

Bottom line: this is not a solution to your problem.
The solution is a decent anti-spam script which might block your contact if he/she sends to much lines after each other in a given amount of time. That is how anti-spam work in practice.

Something like this will only get you in more trouble, it will not solve your crashing problem (since Messenger still recieves the long messages anyways internally) and you _will_ missing probably stuff said by contacts who did not had the intention to spam you at all...

--------------------

quote:
Originally posted by Felu
code:
var maxchars = 100;//Edit the maximum number of charaters here
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
    if(Message.length >= maxchars)
        Message = "I am stupid, and am trying to spam you";
    return Message;
}

Not tested but should work fine :)
It will not work at all since it is far from as simple as that I'm afraid. A decent anti-spam script requires timers (individual for each contact who msgs you), should be polygamy aware, should block contacts, (automatically) unblock them, etc.

This post was edited on 02-20-2007 at 03:08 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
02-19-2007 03:03 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On