Well assuming the server you are on has IRC services it most likely can be done. The easiest way to do it would be

Code:
on *:connect:{
   if ($me != NiGHtOwL) {
      .nickserv ghost NiGHtOwL YOUR_PASSWORD_HERE
   }
}

on *:notice:*Your ghost has been * killed*:?:{
   if ($nick == nickserv && $me != NiGHtOwL) {
      .nick NiGHtOwL
      .nickserv identify YOUR_PASSWORD_HERE
   }
}

Replace the YOUR_PASSWORD_HERE with your NickServ password, also you may need to change the syntax of the .nickserv ghost and .nickserv identify lines if your network uses a different command. And you may also need to change the *Your ghost has been * killed* if your network uses a different notice to tell you the ghost was killed.