I think this is what you are looking for.

Code:
on *:EXIT:{ /unload -rs znc.mrc }


/help , Index Tab , search for "on exit"

Edit: corrected typo in the script.

Last edited by KindOne; 08/05/11 07:39 PM.