fun with prolog

started to learn prolog on the side, so, as a weekend project,
i came up with a 50 line irc client to add to my collection of weird languages
recursion is fun ;)

and somehow, i think, irc is the ideal start into a new language.
it has strings, socks, multithreading, yet it is all doable within 50 lines: