You can either use this code that I did (using regular expressions) or you could use something like
answering machine+(I realise this wasn't the right thing
)
code:
var Sup = /\(\!SM\)/gi;
function OnEvent_ChatWndSendMessage(wnd,msg){
msg = msg.replace(Sup,"Sup Mate");
return msg;
}