Why would you want to?
I can sort of understand wanting IRC in the client (although doesn't seem really worth it), but there is zero reason to do it server side.
And it's going to be a massive amount of work, if you can't work out where to start then you probably can't do it.