Shoutbox

Decline - 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: Decline (/showthread.php?tid=82277)

Decline by Quantum on 03-11-2008 at 07:18 PM

How can i automatically decline a file if it contains X OR Y in the message before that?

X or Y will be sentences. + How can i add it for more sentences so say i want to decline it for.

Hello, my name is gay.

or

Hello i am gay.

or

Hello, btw i am gay.

ect...

Thank you!


RE: Decline by Dempsey on 03-11-2008 at 10:31 PM

You can try taking the FileTransferLib.js out of WhoSentIt, but it won't work without a bit of tweaking as the code is a bit mixed up between that file and WhoSentIt.js I think


RE: Decline by Spunky on 03-12-2008 at 12:00 AM

I'm guessing this is some sort of MSN Picture virus decliner :p


RE: Decline by Quantum on 03-12-2008 at 04:20 PM

Yeah. Can it not be some like:

Ifchat = Hello. LOL

else if = LOL. Hello

function = declineFilesend

I know its not JS code but is it not simple like that?


RE: Decline by roflmao456 on 03-12-2008 at 07:12 PM

here's some code to detect if a word is in a message. (can't create a script .. on vacation and my computer isn't here :P (ip)(h))

code:
var blacklist = new Array(
"photos",
"check out these",
"i think this is you",
"is this you"
);
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
for(e=new Enumerator(blacklist);!e.atEnd();e.moveNext()){
if(Message.search(e.item())){
// contained blocked word(s)
}
}
}