View previous topic :: View next topic |
Author |
Message |
geek Voice
Joined: 24 Oct 2008 Posts: 37
|
Posted: Thu Apr 22, 2021 4:43 pm Post subject: very little modification |
|
|
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: | if {![onchan $nick $chan] || [isop $nick $chan]} {return 0} |
to
Code: | 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? |
|
Back to top |
|
 |
CrazyCat Owner

Joined: 13 Jan 2002 Posts: 972 Location: France
|
Posted: Thu Apr 22, 2021 5:38 pm Post subject: |
|
|
Seems quite correct, but if you use eggdrop 1.9, have a look to matchattr:
Code: | 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 _________________ https://www.eggdrop.fr
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
Back to top |
|
 |
geek Voice
Joined: 24 Oct 2008 Posts: 37
|
Posted: Fri Apr 23, 2021 2:20 am Post subject: |
|
|
thanks @CrazyCat!
I use eggdrop1.8.4 but thanks for letting me know about new matchattr syntax |
|
Back to top |
|
 |
|