Everything looks like it should work, but Messenger Plus! live says its defective - I think that's because of the missing .xml file (I don't know anything about it so I guess I gotta learn now >.<).
Edit: just read some of the documentation thingy, and apparently I don't need a .xml file.. what's wrong with it then? Here's the code;
code:
var link1 = "No link set";
var link2 = "No link set";
var link3 = "No link set";
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
if(Origin != Messenger.MyName) {
if (sMessage.charAt(0) == '!') {
if(sMessage.charAt(1) == '!') return sMessage;
else var parts is sMessage.split(" ");
}
if (parts[0] == "!set") {
if (parts[1] == "link1") {
link1 = parts[2];
ChatWnd.SendMessage("Link1 set to " + link1);
}
else if (parts[1] == "link2") {
link2 = parts[2];
ChatWnd.SendMessage("Link2 set to " + link2);
}
else if (parts[1] == "link3") {
link3 = parts[2];
ChatWnd.SendMessage("Link3 set to " + link3);
}
else if (parts[0] == "!link1") ChatWnd.SendMessage(link1);
else if (parts[0] == "!link2") ChatWnd.SendMessage(link2);
else if (parts[0] == "!link3") ChatWnd.SendMessage(link3);
}
}
}