Massive IRC rewrite