Switch the IRC server implementation from the custom socket-based parser
to the irc Python library (SingleServerIRCBot), gaining automatic
exponential-backoff reconnection, built-in PING/PONG handling, and
nick-collision recovery for free.
- Add IRCLib server (server/IRCLib.py) extending ThreadedServer:
_IRCBotAdapter wraps SingleServerIRCBot with a threading.Event stop
flag so shutdown is clean and on_disconnect skips reconnect when
stopping. subparse() is implemented directly for alias/grep/rnd/cat.
- Add IRCLib printer (message/printer/IRCLib.py) calling
connection.privmsg() directly instead of building raw PRIVMSG strings.
- Update factory to use IRCLib for irc:// and ircs://; SSL is now
passed as a connect_factory kwarg rather than post-hoc socket wrapping.
- Add irc to requirements.txt.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>