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.

bot kicking ops

Help for those learning Tcl or writing their own scripts.
Post Reply
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

bot kicking ops

Post by R-WaT »

<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
<tme|citron[tz]> #mouseskills
* tme|citron[tz] was kicked by R-WaT|Eggdrop (flood)


this is a problem. so im testing the eggdrop, and i tell this guy to spam channel to see if he will get kicked, and he does get kicked.

This guy is OPed (+O) in the channel. Not to mention, even if he wasnt, the bot should be kicking after 3 times in 10 seconds. that was like 10 times.

please help.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind flud - * fludexempt

proc fludexempt {nick uhost hand type chan} {
 return [expr {[validchan $chan] && [isop $nick $chan]}]
}
if you want to exempt voices too, then use

Code: Select all

[expr {([validchan $chan]) && ([iosp $nick $chan] || [isvoice $nick $chan])}]
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

Post by R-WaT »

thanks
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

Post by R-WaT »

[14:00] Tcl error [fludexempt]: invalid command name "1"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

return [expr {([validchan $chan]) && ([iosp $nick $chan] || [isvoice $nick $chan])}]
not the [expr] line alone. You should've known that after seeing the first code.

Even, just

Code: Select all

expr {([validchan $chan]) && ([iosp $nick $chan] || [isvoice $nick $chan])}
should do the same job.
Post Reply