relocated irc logic
Signed-off-by: Oliver Lorenz <olli@olorenz.org>

Relocated the IRC logic to core.c.
Added stubs for URL parsing.