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 

Using pushmode and putkick and having the bans set first

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


Joined: 22 Mar 2015
Posts: 438

PostPosted: Sat Mar 28, 2020 12:15 pm    Post subject: Using pushmode and putkick and having the bans set first Reply with quote

i was wondering if there would be a way to use both pushmode and putkick and always have the bans set first because we wanted to have both bans and kicks stacked as much as possible as some ircds offer such an option

i tried using SpiKe's method in his anti mass join tcl but couldnt figure it out
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1095

PostPosted: Sat Mar 28, 2020 1:46 pm    Post subject: Re: Using pushmode and putkick and having the bans set firs Reply with quote

Perhaps:

Code:


utimer 2 [list putkick #chan nick [reason] ]



to delay the kick for 2 seconds.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 438

PostPosted: Sat Mar 28, 2020 2:14 pm    Post subject: Reply with quote

that seems to work but if there would be a solution without the use of timers it would be prefered as it uses a lot of timers if called multiple times unless this is the only way ofcourse
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3645
Location: Mint Factory

PostPosted: Sat Mar 28, 2020 4:10 pm    Post subject: Reply with quote

pushmode and putquick use two different queues so the only way to somewhat circumvent this is, like willyw suggested, using an utimer.

As far as I remember (and looked at the last code posted on page 2) the anti-mass join script used putquick to stack bans and then the kick part is executed that also uses putquick. You get kicks then bans?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 438

PostPosted: Sat Mar 28, 2020 5:36 pm    Post subject: Reply with quote

i always wanted to rather use that one for all scripts that need kicks and or bans but its to complex to figure out to me to use as a generic option to use for any tcl that has kicks and bans in them

spikes anti massjoin stacked kicks and bans im speaking of as that one does exactly what we want stacks all kicks and bans and pushes out the stacked bans first followed by the stacked kicks
Back to top
View user's profile Send private message
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 138
Location: Northern Ireland

PostPosted: Sat Apr 18, 2020 10:08 pm    Post subject: Reply with quote

as far as i have seen with the scripts i experiment setting a utimer would be a solution i would use but if you find a second solution do share Smile
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 138
Location: Northern Ireland

PostPosted: Wed Apr 29, 2020 8:01 am    Post subject: Reply with quote

hehe you could also use kickban it bans before kick i use that in my scripts Wink
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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