egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

very little modification

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
geek
Voice


Joined: 24 Oct 2008
Posts: 37

PostPosted: Thu Apr 22, 2021 4:43 pm    Post subject: very little modification Reply with quote

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
View user's profile Send private message
CrazyCat
Owner


Joined: 13 Jan 2002
Posts: 972
Location: France

PostPosted: Thu Apr 22, 2021 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
geek
Voice


Joined: 24 Oct 2008
Posts: 37

PostPosted: Fri Apr 23, 2021 2:20 am    Post subject: Reply with quote

thanks @CrazyCat!


I use eggdrop1.8.4 but thanks for letting me know about new matchattr syntax
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber