irssi is a CLI IRC client. It is often used with bitlbee, an AIM IRC proxy (allowing you to sent instant messages using IRC).