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
)
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)
}
}
}