Simple IRC bot in C