Thanks! If you like to you can also add lines as below between .msg $nick... and halt to see the PM and save it in a file
echo $color(notice) -a $+(-,$me,-) $logstamp PM from $nick $1- write logs\MissedPM.txt $logstamp PM from $nick $1-