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