relay-core: add irc utils class