matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Block/unblock in a multiple conversation?
code: function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
if (sMessage == '/mblock'){
for(var enumerator = new Enumerator(pChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext()){
enumerator.item().Blocked = true;
}
return '';
}
else if (sMessage == '/munblock'){
for(var enumerator = new Enumerator(pChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext()){
enumerator.item().Blocked = false;
}
return '';
}
}
This post was edited on 09-23-2006 at 01:08 AM by matty.
|
|