In 'perform on connect' you could put
/nickserv recover Nightowl <password> - that'll recover your nick and identify you as the owner, although you'll have to change your nick back manually if you reconnect as Nightowl-afk or whatever. I'm sure someone else can figure that one out for you though, scripting isn't my strong point, to say the least.