No this is not.
This is correct :
code:
function OnEvent_Initialize(MessengerStart)
{
MsgPlus.AddTimer ('Add1', '600000');
}
function OnEvent_Timer (TimerId)
{
if (TimerId == "Add1")
{
var ContactsOpened = Messenger.CurrentChats;
if (ContactsOpened.Count > 0)
{
var e = new Enumerator (ContactsOpened);
for (; !e.atEnd(); e.moveNext())
{
var ChatWindow = e.item();
ChatWindow.SendMessage('Please visit http://www.example.com/ for...');
}
}
}
MsgPlus.AddTimer ('Add1', '600000');
}
This portion of code will advertise your text every 10 minutes to each of your contacts that have opened a chat window with you.