simply type !hush to mute someone or !speak to let them talk again.
on *:text:!hush*:#: { if ($nick isop $chan) {
set %Muter $2 $address($2-,1)
set %mute $chan
mode $chan -v+b $address($2-,1) ~q: $+ $address($2-,1)
mode $chan -vqaoh+b $2 $2 $2 $2 $2 ~q: $+ $2
}
}
ON !*:NICK:{
if ($nick == $gettok(%Muter,1,32)) {
set %Muter $newnick $address($newnick,2) $chan
}
}
ON !@*:JOIN:#:{
if ($+(*,$gettok(%muter,2,32),*) iswm $wildsite) && (# == $gettok(%Muter,3,32)) {
set %Muter $nick $address($nick,2) $chan
.timerdeop 1 1 check_nickop
}
}
on !@*:RAWMODE:#:{
if ($regex($1,/(a|v|o|h|q)/iS)) && ($2 == $gettok(%Muter,1,32)) && (# == $gettok(%Muter,3,32)) {
mode $chan - $+ $regml(1) $2-
}
}
alias check_nickop {
tokenize 32 %Muter
mode $gettok(%Muter,3,32) -qaohv $2 $2 $2 $2 $2
}
on *:text:!speak*:#: {
if ($nick isop $chan) {
msg $chan $2 you have been taken off mute now please play nice | notice $2 if you have a higher access please update or whatnot.
mode $chan +v-b $address($2-,1) ~q: $+ $address($2-,1)
mode $chan +v-b $2 $2 $2 $2 $2 ~q: $+ $2
unset %muter
}
}
plus this seems like it would only hush/speak one nick at a time
is there a way that it could be made to hush/speak multiple nicks