mIRC Home    About    Download    Register    News    Help

Topic Options
#262930 - 20/04/18 08:49 AM need help or advice on this script
raycomp Offline
Vogon poet

Registered: 04/05/13
Posts: 101
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)
}
}

Top
#262935 - 21/04/18 07:24 AM Re: need help or advice on this script [Re: raycomp]
raycomp Offline
Vogon poet

Registered: 04/05/13
Posts: 101
I found the problem.

Top
#262942 - 22/04/18 08:39 PM Re: need help or advice on this script [Re: raycomp]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3300
Loc: France
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
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top