Skip to content
MSN Addons

Guest_Flood Kick

A TG007 community discussion started by K0rupt.

Discussion 17 posts
Page 1 of 1
Open
Topic #2886 · 17 published posts · 1,839 views

ok this is the problem when my bot detects a Guest flood it will only kick a few of them Say They Flooding With 60 Guest Nicks when they Enter it will only kick 4 and the rest just sit there.....instead of mass kicking......is there any kind of code i can add to it...to make it kick all Of The Same Nicks That Are Flooding,Tr|x : Possible Guest_ flood detected, Guest_ have been banned (5 minute ban)

Host Tr|x kicked Guest_Gothz6233 out of the chat room: Mass Guest Flooder kicker

Host Tr|x kicked Guest_Gothz7936 out of the chat room: Mass Guest Flooder kicker

Host Tr|x kicked Guest_Gothz8875 out of the chat room: Mass Guest Flooder kicker.........................Below Is The Code I Use

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

#guestflood on
on *:JOIN:* { 
 if (> isin $nick) { 
   if (!%GuestFlood) { set -u5 %GuestFlood 1 } 
   else { inc %GuestFlood } 
   if (%GuestFlood == 3) { 
     access $comchan($nick,1) add DENY >*!*@*$* 5 
     msg $comchan($nick,1) Possible Guest_ flood detected, Guest_ have been banned (5 minute ban) 
     kickguest 
     unset %GuestFlood 
   } 
 } 
} 
#guestflood end 

alias kickguest { 
 set %kg 1 
 :next 
 set %mnick $nick($comchan($me,1),%kg) 
 if (!%mnick) { halt } 
 if (%mnick == $me) { inc %kg | goto next } 
 if (> !isin %mnick) { inc %kg | goto next } 
 if (> isin %mnick) { kick $comchan($me,1) %mnick Mass Guest Flooder kicker } 
 inc %kg 
 goto next 
} 

Edited Feb 17, 2005 11:58 PM by K0rupt

I think this should do the job.

alias kickguest { 
 var %kg = 1, %cc = $comchan($me,1)
 while (%kg <= $nick(%cc,0)) {
   if (> isin $nick(%cc,%kg)) { kick %cc $nick(%cc,%kg) Guest Flood Kicker | inc %kg }
   else { inc %kg }
 }
}

It's 1am atm and I'm real tired so the specific flooding nicks I can't code for now. Best bet's just logging a guest's name using $remove for numbers (or regex) then just compare it with each guest that joins. I reckon that'd be quite laggy though.

Edited Feb 18, 2005 1:06 AM by Cleric xtx

 

#autoguestflood off
on *:JOIN:* {
 if (> isin $nick) {
   if (%GuestFlood == $null) { 
     set -u10 %GuestFlood 1
   }
   else { inc %GuestFlood }
   if (%GuestFlood >= a) {
     prop $chan hostkey $read keys.txt
     access $chan clear voice
     access $chan clear host
     access $chan clear grant
     access $active add DENY >*!*@*$* 10 :guest flood ban added by $replace($me,>,Guest_) at $date @ $time
     unset %GuestFlood 
   }
 }
}
#autoguestflood end

 

 

this one works to on msn chat

prop $chan hostkey $read keys.txt

 

Shouldn't the part in red be $read(keys.txt) ?

 

"Diplomacy is the art of saying 'Nice doggie' until you can find a rock".-Will Rogers

Just use an 'unsub' kick, it's much simpler..

just ban all guests

dont the webtv have proper nicks now

My code does NOT have bugs. It just develops random features.

on me:*:JOIN:#: { 
 access $chan clear  
 access $chan add owner $ial($me).addr 0  : -=Onjoin Auto Add Owner=- $asctime
 prop $chan OWNERKEY $msn.pass
 access $active add deny ??????????????????????????????????????????????????*!* 0 :=Long Nicks Ban= $asctime
 access $active add deny >*!*@*$*  0 : =No Guest_BAN= $asctime
}

Add this to your remotes. This will ban all long nicks and GUEST_ nics which webtv users DONT have anymore...Stopping alot of the flood probs. The owner pass and the add access is extra security....making sure your bot CANNOT be banned from the room if you have more then one owner and that owner likes to play games.

i wouldn't clear all in the access list. That is a bad idea i think. Try this maybe.

 

on *:OWNER:#: {
 if ($opnick == $me) {
   set -u5 %meban. [ $+ [ $chan ] ] $true
   prop $chan OWNERKEY $msn.pass
   access $chan add owner $ial($me).addr 0 :Auto Owner
   access $chan add deny ??????????????????????????????????????????????????*!* 0 :=Long Nicks Ban= $asctime
   access $chan add deny >*!*@*$*  0 : =No Guest_BAN= $asctime
 }
}

raw 914:*: { if (%meban. [ $+ [ $chan(1) ] ] { return } }

 

I would use that, atleast that way, whenever you get ownered, it tries to add denies and that stuff.

Edited Sep 24, 2005 11:09 PM by The Gate Keeper
on me:*:JOIN:#: { 
 access $chan clear  
 access $chan add owner $ial($me).addr 0  : -=Onjoin Auto Add Owner=- $asctime
 access $chan add owner *!*blah blah@GateKeeperPassport 0 :Hawks Bot
 access $chan add owner *!*blah blah@GateKeeperPassport 0 :Lost Boy Joey
 access $chan add owner *!*blah blah@GateKeeperPassport 0 :LaughingHawk
 prop $chan OWNERKEY $msn.pass
 access $active add deny ??????????????????????????????????????????????????*!* 0 :=Long Nicks Ban= $asctime
 access $active add deny >*!*@*$*  0 : =No Guest_BAN= $asctime
 .timer7ozknock 1 60 mode $!msn.get($cid,fullroom) +u-i
 /timernoc1 1 15 /msn.dogetsub
}

TGK this is the FULL version I am using in my script...yours I can see would be better if you allow other scripts into your room. But I dont so I am using this. I'm just a security nut and I threw this one together some time ago...so far no probs. The first line is the Script itself...the 2nd gatepass line is my GF's bot which runs the games only. The last 2 gatepass lines are so that we cant get banned from the room...say a flood attack happens the room locks down then the bot moofs...we can still get in and reset everything. The .timer is from Guard Dog, ty by the way, I use that code with alil tweak here and there for other things. And the last one is cause I like to hop the bot here and there and for some reason the timer in my vinc version doesnt do it. Not the best coding but when a noob like me throws something together and it actually works... Thanks again for your help boss.

yea lost, it's good, but i still don't think it is totally good, even if you don't have other scripts in and that, i mean what about the already set deny and that stuff. Those would become a giant waste then cause they would need to be re-added.

im with Ozzy10 ban the guest,i always do,,,,,keep webtv open..very easy

Ahhhh I see what you are saying...so I will change the clear all to just the owners. And i have a seperate !flood trigger command for admins to load the known flood gates to deny them in the access list. I think someone once told me that loading up the access list is bad...cant see how though. I just want my lil corner in the msn world and live in peace...lol

i think you don't really need a "guest flood" kicker...just ban guests

 

//access # add deny >*!*

 

but if you want to kick any of them that actually DO join

 

on *:JOIN:#: {

if (> isin $nick) kick # $nick : Guest Kicker | access # add deny >*!*

}

 

ought to kick them all then ban the guests...

 

and like the others have already said...Its not a good idea to clear the whole access incase some bans were set to prevent some kid doing harm...

 

on *:JOIN:#: {

if ($nick == $me) && ($me isowner $chan) {

access # add owner $ial($me).addr

prop # ownerkey : $rand(0000,9999)

access # add deny >*!*

access # add deny *?????????????????????????????????????*!*

}

}

Edited Sep 25, 2005 7:43 AM by fahad_aka_hitman

Ignorance Is Bliss

WebTV Users are no longer Guest they all have a normal Gatekeeper Passport like us so just ban Guests no need to allow WebTV as we used to before if you have a version checker enabled you will see which user is on webtv

yeah ur right grinning_male i put the guest ban on just for the childess ppl who want to flood rooms with a guest flooder

i dont use guest kickers.... a good spec kicker will do the job, plus it will be one less prot u will need to use

Why use a guest kick? just ban them

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256