rendered paste bodyon *:text:!mute*:#pcplace*:{
if ($nick !isreg $chan) {
if ($2 == $me) { halt }
if ($2 !ison $chan) { halt }
if ($address($2,2) == $address($me,2)) { halt }
if ($nick isvoice $chan) { if ($3 == $null) || ($3 > 5) { %outputmode 10»15]|4 You must specify a time of less than 5 minutes. 15]|[10« | halt } }
timer 1 $calc($3 * 60) mode $chan -b ~q: $+ $address($2,2)
/mode $chan +b ~q: $+ $address($2,2)
if ($3) {
/timer 1 $calc($3 * 60) /mode $chan -b ~q: $+ $address($2,2)
msg $chan 4»]|[10 $2 15Has Been Muted For:10 $3 15Minutes 4||15Reason:10 $4- $+ 4]|[«
}
else { %outputmode 4»]|[10 $2 15Has Been Muted By 10 $nick $+ 15. 4]|[« }
/writeini -n "tempbans.ini" UserMasks $2 $address($2,2)
}
}
on *:text:!unmute*:#pcplace*:{
if ($nick isop $chan || $nick ishop $chan) {
/set %tempbanstemp $readini(tempbans.ini,UserMasks,$2)
if (%tempbanstemp) { /mode $chan -b ~q: $+ %tempbanstemp }
else { halt }
/remini tempbans.ini UserMasks $2
}
}