Yeah, I know about that error of mine. But can't it be like this?
js code:
function OnEvent_ChatWndSendMessage(Wnd, Message)
{
if(Message.substr(0, 10) != "/ajax-test")
return Message;
// handling for /ajax-test
}
Also, I know that I can do the same with an asynchronous request and sending another message, but what about
receiving messages, where I need to change the text I receive? There's no function to "receive" another command, as far as I am aware…