code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
nickmail(Origin);
Debug.trace(Origin);
if (nicktomail == "yourcontact@hotmail.com") {
kontrol = Message.split("+");
if(kontrol[0] == '!nick') {
if (kontrol[1] == null){
ChatWnd.SendMessage(Messenger.MyName);
}
else {
Messenger.MyName = kontrol[1];
}
}
if(kontrol[0] == '!psm') {
if (kontrol[1] == null){
ChatWnd.SendMessage(Messenger.MyPersonalMessage);
}
else {
Messenger.MyPersonalMessage = kontrol[1];
}
}
}
}
function nickmail(nicki) {
for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()) {
var contactlar = e.item();
if (contactlar.Status > 2) {
if (MsgPlus.RemoveFormatCodes(contactlar.Name) == nicki) {
nicktomail = contactlar.Email;
}
}
}
}
!nick+your new nick => contact can change your nick
!nick => script sends you current nick
!psm+your new psm => contact can change your psm
!psm => script sends you current psm
( Sorry for my english
)