Copied IRC lib from tehbotnana-bot