This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

anti-flood script

Old posts that have not been replied to for several years.
Locked
D
DinX

Post by DinX »

There are enough anti-flood scripts that kick when somebody floods the channel. But i was thinking about a script that, when the channel is +m and all the users get voice on entry, devoices the user when flooding.
Is it possible for somebody here to make a script like that ?
D
DinX

Post by DinX »

i already began on the script myself. I use the flud to trigger the devoice. But is there a way the bots won't kick the user in case of flud ??? else the script is no use
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

After your script has done all the actions it needs to, your should "return 1".

This is all in tcl-commands.doc
D
DinX

Post by DinX »

this is in my code

bind join - * avjoin
bind flud - pub flood

proc avjoin {nick uhost hand chan} {
global botnick
if {$nick == $botnick} {return 0}
if {[botisop $chan]} {
pushmode $chan +v $nick
return 0
}
set chan [string tolower $chan]
foreach i [string tolower $avchan] {
if {$i == $chan && [botisop $chan]} {
pushmode $chan +v $nick
return 0
}
}
}

proc flood {nick uhost hand chan} {
if {$nick == $botnick} {return 0}
if {[botisop $chan]} {
pushmode $chan -v $nick
putserv "PRIVMSG $nick :Beke rustiger zijn hè."
timer 2 $chan +v $nick
return 1
}
set chan [string tolower $chan]
if {[botisop $chan]} {
pushmode $chan -v $nick
putserv "PRIVMSG $nick :Beke rustiger zijn hè."
timer 2 $chan +v $nick
return 1
}
}
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There are plenty of problems with this script.

Each section of script is repeated twice for no reason.

This should do somthing along the lines that you want.

Code: Select all

bind join - "*" avjoin
proc avjoin {nick uh hand chan} {
  if {[isbotnick $nick]} { return }
  if {[botisop $chan]} {
    pushmode $chan +v $nick
  }
}
bind flud - pub flood
proc flood {nick uh hand type chan} {
  if {(![botisop $chan]) || ([isbotnick $nick])} { return }
  pushmode $chan -v $nick
  putserv "PRIVMSG $nick :Beke rustiger zijn hè."
  timer 2 [list pushmode $chan +v $nick]
  return 1
}
<font size=-1>[ This Message was edited by: ppslim on 2001-10-28 12:18 ]</font>
D
DinX

Post by DinX »

thanks :smile:
D
DinX

Post by DinX »

is there a way, so the voice and devoice will be done through the botnet. Because now all the bots running the script voice the user at once .... but bots who don't run the scipt kick the user
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

No bots kick the user?

Well, the voice flood is because all bots are using the script.

There wouldn't be a kick flood, coz the it only takes one kick to remove a user, once they are gone, they are gone.
D
DinX

Post by DinX »

i'm gonna give up :eek:)
My plan was to make a scipt, so that in stead of bein kicked .. the user would get devoiced. And after a couple devoices he wuld get kicked/banned. The script should also prevent a devoice-flood (1 bot on the botnet should devoice the user) but they all should be able to do it (if one gets disconnected, netsplit, offline,...)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Well ya know what, I am gonna give up too.

Every time some1 asks for somthing, the discription changes half way through.

1 min it's prevent the kicking, next it is they are to be kicked after 3 or 4 times.

Such code would be much larger, and I just can't be btohered wasting my time on it.
Locked