/window log on /lastlog
May need -force if longer than 10,000 lines.
Better yet: /LASTLOG -file ~/irc.log
/SET autolog ON