Awhile back I got this snippet from here and I need a little help in adding one more option so it can stop driving me insane. Any help would be greatly appreciated and may just help me avoid getting locked in a padded room someday

.
on *:open:?:{
if (!$hget(msged,$site)) {
splay $mircdirsounds/pm.wav
hinc -m msged $site
hinc -u1 msged temp
}
}
on *:text:*:?:{
if ($active != $nick) && (!$hget(msged,temp)) splay $mircdirsounds/pms.wav
}
What I would like to do is add an On/Off switch in one of my popups so that I can turn the sounds off when I don't need them to be triggered on a private message. Once again, thanks in advance for any time wasted on this minor thing.