| View previous topic :: View next topic |
| Author |
Message |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sat Mar 28, 2020 12:15 pm Post subject: Using pushmode and putkick and having the bans set first |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Mar 28, 2020 1:46 pm Post subject: Re: Using pushmode and putkick and having the bans set firs |
|
|
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 |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sat Mar 28, 2020 2:14 pm Post subject: |
|
|
| 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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Mar 28, 2020 4:10 pm Post subject: |
|
|
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 |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sat Mar 28, 2020 5:36 pm Post subject: |
|
|
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 |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Sat Apr 18, 2020 10:08 pm Post subject: |
|
|
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  _________________ ComputerTech |
|
| Back to top |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Wed Apr 29, 2020 8:01 am Post subject: |
|
|
hehe you could also use kickban it bans before kick i use that in my scripts  _________________ ComputerTech |
|
| Back to top |
|
 |
|