Changing a message being sent:
You can return a message from the ChatWndSendMessage function and it will change the message before it is sent. If you don't return a message, the intercepted message will be sent.
The following code will replace all instances of hi with test.
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
return sMessage.replace("hi", "test");
}
(ChrisBoulton)