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.
N
Nimo
Post
by Nimo » Thu Dec 27, 2001 9:51 pm
Anyone who knows how to do a script that kicks all people,(except them with +o or +b) who joined in the last 2-3 minutes?
/Nimo
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Thu Dec 27, 2001 10:21 pm
bind dcc n "kicklast" dcc:kicklast
proc dcc:kicklast {hand idx arg} {
if {([llength [split $arg]] != 2) || (![validchan [lindex [split $arg] 1]]} {
putdcc $idx "Usage: .kicklast <mins> <chan>"
}
set i [lindex [split $arg] 0]
set t 0
while {$i != 0} {
incr t 60
incr i -1
}
foreach a [chanlist [lindex [split $arg] 1]] {
if {[getchanjoin $a [lindex [split $arg] 1]] <= $t} {
puthelp "KICK [lindex [split $arg] 1] $a :I felt like it"
}
}
}
g
gpdza
Post
by gpdza » Sat Dec 29, 2001 5:01 am
As a matter of interest, why are you using puthelp "kick..." instead of putkick?
Petersen
Owner
Posts: 685 Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK
Post
by Petersen » Sat Dec 29, 2001 4:20 pm
probably because such a mass kick can potentially take a long time in some situations, so filling up the server queue usually isn't a good idea.
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sat Dec 29, 2001 11:34 pm
Yes, notice the use of puthelp, and not putserv (which if used, could have been replaced by putkick).
In larger channels, where upto 50+ kicks can be made in one go, the server queue will backed up for about 50 seconds, in which time, the server could timeout, a vital flood protection command is not sent to the server (coz it's tailed onto the server queue).
Petersen
Owner
Posts: 685 Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK
Post
by Petersen » Sun Dec 30, 2001 12:06 am
well, a flood protection command is normally not a problem, as that would usually be in the mode queue anyway. what is more of an issue is a JOIN command if the bot gets kicked from anywhere, because that uses the server queue.
N
Nimo
Post
by Nimo » Tue Jan 01, 2002 12:46 pm
Thankyou