on ^*:notify:{
; Check if you want to /whois this nick
if $notify($nick).whois { whois $nick }
; Check for a notify sound to play
if $notify($nick).sound {
; If there is one, check if it is "beep" and /beep if it is
if $v1 == beep { beep }
; Else it is a soundfile, so /splay it
else splay $qt($v1)
}
; Halt the default output
haltdef
}
on ^*:unotify:{
; Have to read the mirc.ini entry for notify offline sounds
var %a = $readini($mircini,notify,$+(n,$calc($notify($nick)-1))),%b
; Check for offline sound item
if $pos(%a,Wave2:,1) {
; If found, find the position of it in the entry
%b = $v1 + 7
; Check if it is beep, and beep if it is
if $mid(%a,%b) == beep { beep }
; Otherwise it's a soundfile, so /splay it
else splay $qt($v1)
}
; Halt the default output
haltdef
}