mIRC Home    About    Download    Register    News    Help

Print Thread
#180656 12/07/07 05:23 PM
G
Garou
Garou
G
What are the available settings choice for this script?

Code:

on @*:join:#:{
  inc -u1 %opsjoin. [ $+ [ $chan ] ]
  if ( %opsjoin. == off ) || ( %opsjoin. == $null ) || ($nick isop #) { return }
  if ($nick == ChanServ || $nick == NickServ || $nick == MemoServ) { return }
  if (%opsjoin. [ $+ [ $chan ] ] >= 3) && (%opsjoin. [ $+ [ $chan ] ] <= 5) {
    .mode $chan +b $wildsite | unset %opsjoin. [ $+ [ $chan ] ] | halt
  }
  set -u3 %OPS. [ $+ [ $chan ] $+ . $+ [ $wildsite ] ] $calc( %OPS. [ $+ [ $chan ] $+ . $+ [ $wildsite ] ] + 1 )
  if ( %OPS. [ $+ [ $chan ] $+ . $+ [ $wildsite ] ] >= 3) {
     if ($nick isop #) return
    .mode $chan +b $wildsite
    .mode $chan +RMm | .timer666 1 60 .mode $chan -RMm
    set %OPS $nick($chan,0)
    unset %fastfilters
    :loop
    inc %fastfilters
    inc -u2 %3dad
    if (%3dad >= 4) halt
    if (%fastfilters > %OPS) halt
    set %temp.filter.kicks $ialchan($wildsite,$chan,%fastfilters).nick
    if (%temp.filter.kicks == $me) { goto loop }
    if (%temp.filter.kicks isop $chan) || (%temp.filter.kicks isvo $chan) { goto loop }
    if (%temp.filter.kicks ison $chan) kick $chan %temp.filter.kicks 10 Join FLood Detected
    goto loop
  }
}

 

#180678 12/07/07 10:27 PM
R
RusselB
RusselB
R
If you don't know, then you, probably, didn't write the script.

A quick survey of the code shows me that there are a number of variables being set, and then (supposedly) compared, although I see a number of discrepencies between what is being set and what is actually being compared,

If you could tell us what it's supposed to be doing, we might be able to get you a better code.

BTW: It's generally considered to be bad form to use a script that you don't understand and/or don't trust the person that wrote it. As you're asking here about settings for the script, I'm going to presume that you don't know who wrote it and/or you can't contact them directly.

#180687 12/07/07 11:24 PM
G
Garou
Garou
G
I didnt write the script and I cant remember who did cause I added for sometime now. Its a join flood script I just wanted to learn how and where to change the settings.


#180693 13/07/07 12:10 AM
R
RusselB
RusselB
R
This script isn't really written for one to be able to change the settings. You could change them in the code, but it would depend on exactly what you were wanting to change.

Looking at the code, it seems that there's information or code missing that would allow settings to be changed, such as if the code is active or not.

#180694 13/07/07 12:15 AM
G
Garou
Garou
G
Right now it will set mode for 60 sec and ban when 3 ip are the same on join. What I would prefer is to be able to change it to 8 join in 2 sec but not for the same ip users if this is possible.

Last edited by Garou; 13/07/07 12:22 AM.
#180695 13/07/07 12:42 AM
C
CitizenKane
CitizenKane
C
...Why? Then the script would set off every time a netsplit reconnected.

#180803 13/07/07 10:36 PM
G
Garou
Garou
G
Ok thx guys.


Link Copied to Clipboard