Curses IRC client in C with Lua scripting