on *:text:*:?: {
; Check if your nick is used.
if ($me isin $1-) {
; Check if the target of the text is your active window. If not, continue. If it is, then don't do anything.
if ($target != $active) {
echo -at $nick is calling you in PM.
.splay dingding.wav
}
}
}