mIRC Home    About    Download    Register    News    Help

Print Thread
#75307 15/03/04 10:31 AM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
How can i create an anti flood join ?
e.g: if 4, o more nicks joins to #channel on less than 3 seconds, me must set mode +mi
Thanks smile


-= Porque pese a todo Dios .. aún te tengo fé =-
#75308 15/03/04 10:45 AM
Joined: Dec 2002
Posts: 8
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2002
Posts: 8
Well u do know thats not going to work because ... what happends if theirs a netsplit and a server comes back up and lets say 100 people join at the same time after 4nicks you are gonna lock them out laugh Your better off doing like when someone joins set a +l of 15 more then the users their like if u have a 100 users set it to +l 115 then when like 3 more users join set it to +l 120 or what not how to script that i havent got a clue but thats my idea...

#75309 15/03/04 10:46 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *@!:join:#:{
  inc -u3 %join. [ $+ [ # ] ]
  if %join. [ $+ [ # ] ] >= 4 { 
    mode # +mi 
    .timerjoin [ $+ [ # ] ] 1 5 mode # -mi
  }
}



New username: hixxy
#75310 15/03/04 10:49 AM
Joined: Jan 2004
Posts: 79
C
Babel fish
Offline
Babel fish
C
Joined: Jan 2004
Posts: 79
umm make a timer to execute every minute and set the channel limit to 4 more than the current users wink

hmm not sure if the following will do it (since i haven't written a script in SOME time)

alias startlimittimer {
timer1 0 60 mode $2 +l $calc( $nick($2,0) + 4 )
}

and

aliad stoplimittimer {
timer1 off
}


but still i'm not 100% sure


My ally is the compiler, and a powerful ally it is!
#75311 15/03/04 11:02 AM
Joined: Dec 2002
Posts: 8
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2002
Posts: 8
try this
Code:
alias c_l {
  .set %c_ $1
  timercl 0 60 mode %c_ +l $calc($nick(%c_,0) + 10))
}

/c_l #chan-name
It'll set +10 to the chan ever minute and it works i tried it blush) basicly just fixed the guys post above me heh

#75312 15/03/04 11:04 AM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
no no .. cause the channel will be set +mi for 2 minutes, or 1 minute, so @ps can manage that ;D


-= Porque pese a todo Dios .. aún te tengo fé =-
#75313 15/03/04 11:05 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
that's not what he asked for.


New username: hixxy
#75314 15/03/04 11:05 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
change 5 to 60 in the code i gave you wink


New username: hixxy
#75315 15/03/04 11:23 AM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
Now, i have one problem, the code works perfectly ..
but i added this:
on *@!:join:#info:{
inc -u2 %join. [ $+ [ #info ] ]
if %join. [ $+ [ #info ] ] >= 4 {
mode #info +mi | //describe #info 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1] | halt
.timerjoin [ $+ [ #info ] ] 1 120 mode #info -mi
}
}

I want that when me set +mi say into #info "Posible ataque de clones"
but it says 3 times !
look:

* x4079 has joined #info
* h8956 has joined #info
* t35 has joined #info
* p1573 has joined #info
<|cLs|> 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]
* s8736 has joined #info
<|cLs|> 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]
* |cLs| sets mode: +mi
* HeLP has joined #info
<|cLs|> 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]

Thanks smile


-= Porque pese a todo Dios .. aún te tengo fé =-
#75316 15/03/04 11:39 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
on *@!:join:#info:{
inc -u2 %join
if %join >= 4 {
mode #info +mi
if i !isin $chan(#info).mode { describe #info 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1] }
halt
.timerjoin 1 120 mode #info -mi
}
}


New username: hixxy
#75317 15/03/04 11:40 AM
Joined: Dec 2002
Posts: 8
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2002
Posts: 8
Code:
on *@!:join:#info:{
  inc -u2 %join. [ $+ [ #info ] ]
  if %join. [ $+ [ #info ] ] &gt;= 4 { 
    .mode #info +mi 
    msg #info 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]
    .timerjoin [ $+ [ #info ] ] 1 120 mode #info -mi
    halt
  }
}


try that maybe?

#75318 15/03/04 02:49 PM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
no .. jiijijij
it doesn´t work
* v7332 has joined #info
* f1500 has joined #info
* k3877 has joined #info
* l1989 has joined #info
<PaYaSo> 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]
* i9030 has joined #info
<PaYaSo> 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]
* PaYaSo sets mode: +mi
* HeLP has joined #info
<PaYaSo> 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1]


-= Porque pese a todo Dios .. aún te tengo fé =-
#75319 15/03/04 03:30 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
tried mine?


New username: hixxy
#75320 15/03/04 06:07 PM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
Yes . but it doesn´t work frown
I really don´t know what´s wrong.


-= Porque pese a todo Dios .. aún te tengo fé =-
#75321 15/03/04 06:18 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
on *@!:join:#info:{
inc -u2 %join
if %join >= 4 {
mode #info +mi
if i isin $chan(#info).mode { describe #info 15,1[8,1Posible ataque de clones15,1] 8,1[15,1Canal moderado por 2 minutos8,1] }
halt
.timerjoin 1 120 mode #info -mi
}
}

!isin was meant to be isin wink


New username: hixxy

Link Copied to Clipboard