quote:
Originally posted by matty
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if(Message.substr(0, 6) == "!hitme") {
if (Message.substr(Message.length-1, 1) != "\\") {
Message += "\\";
}
ChatWnd.SendFile(Message.substr(7));
ChatWnd.SendMessage("-> " + Message.substr(7));
}
}
Still nothing. No errors in the debugtrace. Just sends the two messages - the command and the path. Dosn't send the image.