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.

very little modification

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
g
geek
Halfop
Posts: 47
Joined: Fri Oct 24, 2008 6:07 am

very little modification

Post by geek »

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?
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

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
g
geek
Halfop
Posts: 47
Joined: Fri Oct 24, 2008 6:07 am

Post by geek »

thanks @CrazyCat!


I use eggdrop1.8.4 but thanks for letting me know about new matchattr syntax
Post Reply