mIRC Home    About    Download    Register    News    Help

Print Thread
Flood Protection #258405 01/07/16 09:15 PM
Joined: Jun 2016
Posts: 9
T
Tuna Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jun 2016
Posts: 9
So, my goal is to add flood protection to my commands, just a simple 5 second thing, no kicking or banning.
How would I protect this:

on *:TEXT:!help:#: { msg $chan 0,1There is no help for you, you poor, poor fucker. }

(I'd like to keep it all in 1-2 lines of script, if I could)

Last edited by Tuna; 01/07/16 09:16 PM.
Re: Flood Protection [Re: Tuna] #258407 01/07/16 11:14 PM
Joined: Jun 2014
Posts: 77
K
Khonor Offline
Babel fish
Offline
Babel fish
K
Joined: Jun 2014
Posts: 77
Hey @Tuna,


Try using this code:

Quote:
on *:TEXT:!help:#: {
if (!%helpflood) {
set -u15 %helpflood on
/msg # There is no help for you, you poor, poor fucker.
}
}

Re: Flood Protection [Re: Khonor] #258409 02/07/16 01:04 AM
Joined: Jun 2016
Posts: 9
T
Tuna Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jun 2016
Posts: 9
Originally Posted By: Khonor
Hey @Tuna,


Try using this code:

Quote:
on *:TEXT:!help:#: {
if (!%helpflood) {
set -u15 %helpflood on
/msg # There is no help for you, you poor, poor fucker.
}
}


It works, but is there any way I could set it to be kept in a single line?

Re: Flood Protection [Re: Tuna] #258411 02/07/16 02:34 AM
Joined: Sep 2014
Posts: 83
H
HappyFappy Offline
Babel fish
Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
Originally Posted By: Tuna
Originally Posted By: Khonor
Hey @Tuna,


Try using this code:

Quote:
on *:TEXT:!help:#: {
if (!%helpflood) {
set -u15 %helpflood on
/msg # There is no help for you, you poor, poor fucker.
}
}


It works, but is there any way I could set it to be kept in a single line?


Code:
on *:TEXT:!help:#: { if (!%helpflood) { set -u15 %helpflood on | /msg # There is no help for you, you poor, poor fucker. } }