quote:
Originally posted by CookieRevised
No...
1) nothing will be executed after a return statement
2) when you return the same message, the command will be send to your contact too (as text).
3) in that code you check if the message is _not_ "/ajax-test", it should the opposite.
See the code in my previous post for the proper way.
I still don't get it. If it is the command I need, the
if clause is skipped and the handling is performed. If it is not, the message is not changed and handling isn't executed. That's exactly the behaviour needed, isn't it?
quote:
There are some things you need to know whenyou want to change recieved text.
Biggest thing is that you can never change recieved text to text which is longer than the original.
Second, text you receive also includes your own send messages.
See OnEvent_ChatWndReceiveMessage event.
All this is also explained in the Plus! Scripting documents.
Yes, yes, I know. How could I be able to make some scripts without reading that first?