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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
geek
Halfop
Posts: 47 Joined: Fri Oct 24, 2008 6:07 am
Post
by geek » Thu Apr 22, 2021 4:43 pm
hi, I need to mod
sentinel.tcl detection of LINE/TEXT flood, to exempt users with "f" flag
script already don't ban f flag users, but I would like their lines are excluded
from count of lines/text
script is
here
I think to modify proc sl_avflood line 233 of pastebin
from
Code: Select all
if {![onchan $nick $chan] || [isop $nick $chan]} {return 0}
to
Code: Select all
if {![onchan $nick $chan] || [isop $nick $chan] || [matchattr $hand f|f $chan]} {return 0}
is this the correct way?
and does this slow down too much the procedure?
CrazyCat
Revered One
Posts: 1235 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Thu Apr 22, 2021 5:38 pm
Seems quite correct, but if you use eggdrop 1.9, have a look to
matchattr :
Code: Select all
if {![onchan $nick $chan] || [isop $nick $chan] || [matchattr $hand +f|+f $chan]} {return 0}
And I don't think it will slow down the procedure
geek
Halfop
Posts: 47 Joined: Fri Oct 24, 2008 6:07 am
Post
by geek » Fri Apr 23, 2021 2:20 am
thanks @CrazyCat!
I use eggdrop1.8.4 but thanks for letting me know about new matchattr syntax