This is an almost total rewrite and rework of the rirc gem. Enclosed in the download is a lib folder, which should contain the IRC library itself, and a bots folder, which contains some examples (and some old broken examples — consider it an exercise to fix these).
This library is capable of saving/loading scripts and any state. It abstracts concurrency, auth, data storage and some minor IRC systems from the user, whilst still allowing them to be hooked at the socket level if necessary. It has the ability to connect to multiple servers and channels and supports secure connections.
Unfortunately I'm not a master of the IRC protocol, and was unable to make this into a polished release since I simply don't know enough about common use. The code's presented here for anyone to polish and pass on if they like (and it is quite usable really...).
Download RubyIRC.tar.gz.
Check the bots folder for examples. Sadly I think only one or two of the bots are up-to-date so you might end up having to read some of the source.