Well considering if ALL the nicks on your notify you would want to ghost them then...
raw 319:*:if (%w.n) { echo -a $+(4,1,$2) ison $3- | unset %w.n }
on *:NOTIFY:.whois $nick | %w.n = 1 | msg nickserv ghost $nick You have been ghost
This would potentially work while if you want some nicks then I suggest looping through $notify(nth) and scan for matches.
/help /notify
/help $notifyAlso RAW 319 is the raw event that happens when the whois info is echo'd back to you and $3 is the starting nth point of the channel list.