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:
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 »

Messages In This Thread
Simple Anti-Spam - by kilouco on 02-19-2007 at 04:37 AM
RE: Simple Anti-Spam - by Felu on 02-19-2007 at 05:10 AM
RE: Simple Anti-Spam - by kilouco on 02-19-2007 at 05:34 AM
RE: Simple Anti-Spam - by Matti on 02-19-2007 at 10:25 AM
RE: Simple Anti-Spam - by kilouco on 02-19-2007 at 02:04 PM
RE: Simple Anti-Spam - by CookieRevised on 02-19-2007 at 03:03 PM


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