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