That still doesn't quite work.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if (Origin != Messenger.MyName && Message.match("(^|\s)[A-Z](\s|$)").length > 0)
return Message.toLowerCase();
return Message;
}
should work better.