a simple mute script, this is version one so there are a couple of bugs that im working on fixing, this does not globaly mute a user it only mutes them in the active channel you typed the command, if they leave the channel and join another one your in the mute script will activate, and mute them again and mute them.
on *:load:{ echo -a 4Thank you for using Jordy's mute script. The commands are 7/mute nick reason & /unmute nick & /delmute to delete the whole list if you fuck up ;)
}
alias mute {
.writeini mute.ini Muted $1 $2-
mode $chan -qaohv+b $1 $1 $1 $1 $1 ~q: $+ $address($1,2)
msg $chan 4U7ser $1 is now muted $iif($2- != $null, 4M7uters message4: $2-,$+ )
set %muted. [ $+ [ $nick ] ] $ctime
}
alias unmute {
if ($readini(mute.ini,Muted,$1) != $null) {
.remini mute.ini Muted $1
var %x 1, %y $comchan($1,0), %mutetime $duration($calc($ctime - %muted. [ $+ [ $nick ] ]))
while (%x <= %y) {
mode $comchan($1,%x) -b+v ~q: $+ $address($1,2) $1
msg $comchan($1,%x) 4U7ser $1 is now 4U7nmuted. They were muted for:4 %mutetime $+ .
inc %x
}
unset %muted. [ $+ [ $nick ] ]
echo -a * Notice: %Rem.User has been deleted from your Mute list.
}
else { .echo -a * Error: User not found in Mute list! }
}
alias delmute {
.remove mute.ini
echo -a * Notice: The Mute List has been emptied.
}
on *:JOIN:#:{
if ($readini(mute.ini,Muted,$nick) != $null) {
mode $chan +b ~q: $+ $address($nick,2)
mode $chan -qaohv $nick $nick $nick $nick $nick
msg $chan 4U7ser $nick is still 4M7uted by: $me , Because : $readini(mute.ini,Muted,$nick)
}
}
i have just noticed something and am confused.. where did this "/shun" reference come from in the submitted snippet. the alias used is /mute and /unmute which has nothing to do with OPER command /shun.
the reference was a comment by another scripter who does use OPER as a joke for an even easier method lol
instead of doing
mode $chan -qaohv $nick $nick $nick $nick $nick
and
mode $chan -qaohv+b $1 $1 $1 $1 $1 ~q: $+ $address($1,2)
you can do
mode $chan -qaohv $str($nick $chr(32),5)
and
mode $chan +b-qaohv ~q: $+ $address($1,2) $str($1 $chr(32),5)
why have it +v them in other rooms when you unmute them when they are only muted in one room?