#include #include #include #include #include #include #include "config.h" #include "irc.h" #include "webserver.h" int main(int argc, char *argv[]) { pthread_t srvThread, ircThread; pthread_create(&srvThread, NULL, (void *) srv, NULL); while (1) { pthread_create(&ircThread, NULL, (void *) bot, NULL); pthread_join(ircThread, NULL); } pthread_join(srvThread, NULL); return 0; }