Hide the irc client inside a function...

...to get around top-level imports.

This should fix #274.