You should use parenthesis and brackets to prevent ambiguity in the event.
Code:
on *:join:#:{
if ($nick == verdugo) {
;case doesn't matter unless it's ===
echo # entro hardware
;# can be used instead of $chan
.splay cuack.wav
;No need for the $mircdir
}
}