Deco
Full Member
Posts: 188 Reputation: 4
42 / /
Joined: Aug 2006
|
RE: RE: My own msg with SendMessage
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
Hi,
Try this:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
// check if this contact have a pass setted
for (i = 0; i < hwnds.length; i ++) {
if (hwnds[i] == ChatWnd.Handle) {
return secureEncrypt(claves[i],sMessage);
}
}
}
Have fun!
|
|