O.P. Auto Im OK
I'm using the Auto Im OK script, but the script isn't working properly. The script only responds to a question without a question mark
Example:
How are you? - nothing happens
How are you - Im OK! U?
How do I say a question mark in JavaScript? I tried ascii but I didn't help. function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if (on == '1'){
if (Origin != Messenger.MyName){
if (Message.match(/(^|\s+)(\*)?how are you(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
|