quote:
Originally posted by SuNcO
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
// check if it is an encoded msg
if (Mid(sMessage,0,1) != "¬") {
// check if this contact have a pass setted
for (i = 0; i < hwnds.length; i ++) {
if (hwnds[i] == ChatWnd.Handle) {
ChatWnd.SendMessage("¬" + secureEncrypt(claves[i],sMessage));
//return "";
}
}
} else {
// is an encoded msg.. so not encode again, just send it
return sMessage;
}
}
Off course, need a lot of work, is just a start
i don't know if you really need the loop ;D
i wonder what the
Mid function does, try out with
sMessage.substr(0, 1)
code:
ChatWnd.SendMessage("¬" + secureEncrypt(claves[i],sMessage));
return "";
Please, come to the
Spanish Forum