Nikooo777, you know that you have an error in your script: > ($nick): <- this will return ($nick): in chat. You need to use
$+($nick,:)
to make it work. Also, having two on text events is unnecessary; this is all you need:
on *:text:*:#: {
if ($1 == $str(@,2)) && ($nick isop $chan) {
.msg $v2 $+($chr(3),04,OPERATOR) $+($nick,:) $2-
}
if ($1 == @) && ($nick isvoice $chan) {
.msg $v2 $+($chr(3),09,MODERATOR) $+($nick,:) $2-
}
}