Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
RE: [request] report feature (paying $$$)
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
var From = "From : " + Contact.Email;
var Message = "\n\nMessage : " + Message;
var Contacts = Messenger.MyContacts;
if (Contacts.GetContact("YOUREMAIL").Status === '1')
Messenger.OpenChat(Contact.Email).SendMessage("ENTEROFFLINEMESSAGE");
else
Messenger.OpenChat("myemail").SendMessage(From+Message);
return;
}
}
}
}
try that.
The Artist Formerly Known As saralk
London · New York · Paris Est. 1989