IRC is not anonymous, unless you take steps outside irc to hide your ip.
Although Freenet has an irc network, called FLIP, that is anonymous by design. And, likewise, I2P has a native irc network that hides your ip. But these are of course "off the grid" networks.