mIRC Homepage
Posted By: raycomp need help or advice on this script - 20/04/18 07:49 AM
Want to mute a disruptive users for a short period. I works so far as issuing the message and also add to channel ban list. Gets removed after timer ends but it does not mute the users. He can still talk despite all that. Is it the script or some other channel mode settings perhaps? Using mIRC 7.52

Quote:
menu nicklist,query,notice {
.Mute1 ( $+ $$1 $+ ):{ var %mute.min = $$?=\"How Many Minutes Would You Like To Mute $$1 For?\"
say $$1 $+ , 12You Have Been Muted For5 %mute.min 12Minutes,Please Take This Time To Think What You\'re Saying, After The Mute, If You Continue To Misbehave, You Will Be 5Removed
mode # -ohv $str($1- $chr(32),6)
.timer 1 1 /mode $active +b ~q: $+ $mask($address($$1,1),2)
.timer 1 $calc(%mute.min * 60) /mode $active -b ~q: $+ $mask($address($$1,1),2)
}
}
Posted By: raycomp Re: need help or advice on this script - 21/04/18 06:24 AM
I found the problem.
Posted By: Wims Re: need help or advice on this script - 22/04/18 07:39 PM
Nice, but you want to watch out for exploit.

The code you pasted can be exploited, /timer is by design double evaluating the command parameter, here you are using $active, which is an unknown value and refers to a channel
Channel's names can unfortunately contain $identifier, which can be evaluated, which would be the exploit, you can find informations about this here
© mIRC Discussion Forums