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.
Old posts that have not been replied to for several years.
D
DinX
Post
by DinX » Sun Oct 28, 2001 9:04 am
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 » Sun Oct 28, 2001 12:16 pm
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
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sun Oct 28, 2001 2:30 pm
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 » Sun Oct 28, 2001 3:07 pm
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
}
}
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sun Oct 28, 2001 3:18 pm
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 » Sun Oct 28, 2001 5:44 pm
thanks
D
DinX
Post
by DinX » Tue Oct 30, 2001 8:37 am
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
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Tue Oct 30, 2001 10:24 am
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 » Tue Oct 30, 2001 10:36 am
i'm gonna give up
)
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,...)
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Tue Oct 30, 2001 11:07 am
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.