quote:
Originally posted by vikke
Simple!
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
Message.replace("[/C]", "");
Message.replace("]", "");
Message.replace("[C=", "");
}
Not working with gradients though..
Message.replace will only replace the first instance of the string, not the others... (probably the reason for not working with gradients
)
code:
for(a=0;a<=99;a++){
myString = myString.replace(new RegExp("\\[c="+a+"\\]",'gi'),"·$"+a+" ");
myString = myString.replace(/\[\/c\]/g,'·$');
}
will work though
Converting IRC to BB will be harder though as IRC has not got a close tag (unless they use ·$ which is unlikely), which is required for it to work