Code:
on 1:NOTIFY:{
  if ($nick == your friends nick) .msg  your friends nick Hi there m8!
  if ($nick == another friend) .msg $nick Hi.
  if ($nick == a third friend) || ($nick == a third friend's other nickname) .msg $nick Yer cool cuz you have two nicks.
}