Look into running psybnc. It automatically saves what channels you were in and lets you add IRC bots, users, banlists, etc to your normal IRC client without the need of a script or such since it's built into the bounce.
Granted you need a shell to run it on, but I still find it incredibly useful.