mIRC Home    About    Download    Register    News    Help

Print Thread
#180656 12/07/07 05:23 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
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
  }
}

 

Garou #180678 12/07/07 10:27 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
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.


Garou #180693 13/07/07 12:10 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
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.
Garou #180695 13/07/07 12:42 AM
Joined: Mar 2006
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2006
Posts: 47
...Why? Then the script would set off every time a netsplit reconnected.

Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Ok thx guys.


Link Copied to Clipboard