mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
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)
}
}

Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
I found the problem.

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard