What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Blocking

Blocking
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Blocking
This should theoreticaly work...
I don't have MP!L to test atm, but it should work fine...

code:
function OnEvent_ChatWndReceiveMessage (ChatWnd, Origin, Message, MessageKind) {
   if (/(?:\s|^)Word(?:\s|$)/i.test(Message)) {
   //This matches only whole words, to match pieces of a word too,
   //use (/Word/i.test(Message)) instead
      for (var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()) {
      Contact = e.item()
      Contact.Blocked = true
      MsgPlus.AddTimer("Unblock" + Contact.Email, Time)
   }
}
functionOnEvent_Timer (TimerId) {
   if (/^Unblock(.+)$/.test(TimerId)) {
      Email = RegExp.$1
      var Contact = Messenger.MyContacts.GetContact(Email)
      Contact.Blocked = false
   }
}
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-13-2006 05:21 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Blocking - by mozzer on 09-13-2006 at 04:58 PM
RE: Blocking - by Shondoit on 09-13-2006 at 05:21 PM
RE: Blocking - by mozzer on 09-13-2006 at 05:27 PM
RE: Blocking - by Shondoit on 09-13-2006 at 05:38 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On