Shoutbox

Request - Spam Script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Request - Spam Script (/showthread.php?tid=85766)

Request - Spam Script by Rower on 09-04-2008 at 01:28 AM

Hello!
I am spammed by messages on msn and i would want a filter script that closes the window if a new message comes up that is on the filter.

Note: I know that it is possible to not recive messages from persons that's not in my contact list.


RE: Request - Spam Script by roflmao456 on 09-04-2008 at 02:36 AM

simple:

code:
var phrases = new Array( // searches for these strings in the message
"some phrase here",
"spam spam spam spam"
);

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
if(Origin != Messenger.MyName){
for(i in phrases){
if(Message.search(phrases[i]) != -1){
ChatWnd.SendMessage("/close");
}
}
}
}


RE: Request - Spam Script by prashker on 09-04-2008 at 03:12 AM

Does your script support wildcards? '*'


RE: Request - Spam Script by Spunky on 09-04-2008 at 03:41 AM

No, but it would be very easy to implement using a RegExp


RE: Request - Spam Script by Rower on 09-04-2008 at 10:14 AM

roflmao456: Thanx so so much!!! :D:D