What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Block on x nudges in x seconds

Pages: (2): « First [ 1 ] 2 » Last »
[Request] Block on x nudges in x seconds
Author: Message:
sno
Junior Member
**


Posts: 65
Joined: Oct 2005
O.P. [Request] Block on x nudges in x seconds
anyone able to make a script that can auto-block a user when they send x amount of nudges in a defined duration to prevent annoyances?
[Image: wlm.php]
08-31-2006 03:14 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Request] Block on x nudges in x seconds
Nudgeback has a simple way of detecting nudges.

If you use this with a timer and a counter you can easily do this.
[Image: 1-0.png]
             
08-31-2006 04:22 PM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
[Release] Block on x nudges in x seconds
quote:
Originally posted by Ezra
Nudgeback has a simple way of detecting nudges.
that's the only way...

In fact, you actually can't protect yourself totally for floods like this since scripts have a lag. When the nudges are send in a extreme fast way, your script has not the time to react on time (in fact, the functions will only be executed after Messenger and Plus! are done processing everything). So to protect you totally you probably need to have an external program which disregards the nudge messages on protocol level.


quote:
Originally posted by Ezra
If you use this with a timer and a counter you can easily do this.
define easy ;) It's actually not that easy or strait forward to code something like this properly. A lot of checks need to be done (more than I imagined too)... see attached Nudge Flood Protection script (and especially the comments in the script itself)

to alter the flood protection you need to edit four variables in the script:
code:
var floodCount = 10;    // max amount of nudges allowed in the time period
var floodTime = 10000;  // period for floodchecking, in milliseconds
var blockTime = 20000;  // period the contact is being blocked, in milliseconds
                        // (-1 = indefinitely time, aka: contacts will not be unblocked automatically)
var blockMessage = true // true = contact will be notified that he is being blocked
                        // false = contact will not be notified

UPDATE (version 1.1):
- added option to show or not show the message
- when blockTime is -1 (indefinitely) the message will not show the blocktime (was very stupid bug)






previous downloads (version 1.0): 49

.plsc File Attachment: Nudge Flood Protection.plsc (274.56 KB)
This file has been downloaded 555 time(s).

This post was edited on 10-16-2006 at 09:43 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-31-2006 10:31 PM
Profile PM Find Quote Report
sno
Junior Member
**


Posts: 65
Joined: Oct 2005
O.P. RE: [Request] Block on x nudges in x seconds
im confused looking at it :P

it isnt working...
[Image: wlm.php]
09-01-2006 02:19 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Request] Block on x nudges in x seconds
quote:
Originally posted by sno
im confused looking at it :P

it isnt working...
if you tell exactly what isn't working I maybe can help you...


PS: the script works fine as-is though...
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-01-2006 02:57 PM
Profile PM Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
33 / Male / Flag
Joined: Dec 2004
RE: [Request] Block on x nudges in x seconds
Works here, thanks Cookie.

Only if I culd have used it when everyone was using the MSNM7.0 'busy bug' :tongue:
Twitter: @ChrisLozeau
09-01-2006 05:31 PM
Profile PM Find Quote Report
sno
Junior Member
**


Posts: 65
Joined: Oct 2005
O.P. RE: [Request] Block on x nudges in x seconds
user sends 5 nudges in under 5,000 miliseconds
it did not block them, nothing happened...
[Image: wlm.php]
09-02-2006 10:08 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Request] Block on x nudges in x seconds
please read what has been posted


It doesn't block the contact because:
quote:
Originally posted by CookieRevised
to alter the flood protection you need to edit three variables in the script:
code:
var floodCount = 10;    // max amount of nudges allowed in the time period
var floodTime = 10000;  // period for floodchecking, in milliseconds
var blockTime = 20000;  // period the contact is being block, in milliseconds
                        // (-1 = unlimited time, aka: contacts will not be unblocked automatically)

As you can see the default is 10 nudges within 10 seconds and the contact will be blocked for 20 seconds.

Therefore, 5 nudges in 5 seconds is allowed (by default)...

Also:
quote:
Originally posted by CookieRevised
When the nudges are send in a extreme fast way, your script has not the time to react on time (in fact, the functions will only be executed after Messenger and Plus! are done processing everything).

This post was edited on 09-02-2006 at 10:27 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-02-2006 10:25 AM
Profile PM Find Quote Report
sno
Junior Member
**


Posts: 65
Joined: Oct 2005
O.P. RE: [Request] Block on x nudges in x seconds
well 1. the contact sent 10 nudges to make sure
2. i waited atleast 1 min for it to block, it didnt.
3. u didnt need to quote, i already read it and did take note and changed the variables to my liking whihc was 5 nudges in less than 10 secs. and a block for 10mins.
[Image: wlm.php]
09-02-2006 07:18 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Request] Block on x nudges in x seconds
I'm sorry but there are no bugs in the script. It works as it supposed to be.

2) You don't need to 'wait' for the block, if the flood protection is triggered the contact is blocked immediatly (if a block time has been set).

3) in future try to post immediatly what didn't worked and what you exactly did. People aren't mind readers ;)....

This post was edited on 10-16-2006 at 09:42 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-02-2006 10:06 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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