I dropped my #IRC client onto github today! It's 1000sloc of #Tcl/Tk for the core, plus a bunch of plugins. I've been using it as my primary #IRC client for the past couple of years, so it's well-used.
It's not for everyone, but I'd say it's one of the most hackable #IRC clients out there.