I am at work so I can't test this but here you go.
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
var mCommand = new Array();
mCommand = Message.split(' ');
if (mCommand[0] == '/act'){
Debug.Trace("Recognized");
var nick = Messenger.MyName;
var msg = '/me ';
Messenger.MyName = mCommand[1];
for (i = 2; i < mCommand.Length; i++) {
msg += mCommand[i];
}
MsgPlus.AddTimer('restoreNick', 100);
return msg;
} else { Debug.Trace('Not Recognized'); }
}
quote:
Originally posted by billboy1001
code:
var msg = "/me";
This is your error right here
/ me requires a parameter. So the code must be:
quote:
Originally posted by billboy1001
code:
var msg = "/me ";