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.

Kicking all people who joined last minute?

Old posts that have not been replied to for several years.
Locked
N
Nimo

Post by Nimo »

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
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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 »

As a matter of interest, why are you using puthelp "kick..." instead of putkick?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

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.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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).
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

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 »


Thankyou :smile:
Locked