#include <stdio.h>
#include "tuvebot.h"
void *botCMD_Thread(void *threadid) {
int tid = 0x0;
short lC = 0x0;
tid = (int)threadid;
writeLog(0,"Starting Bot's CMD Thread: [%d]\n", tid);
while (1) {
sleep(5);
if (lC == 6) {
lC = 0;
sWriteSocket("STATUS");
}
if (joinChan == 1) {
joinChan = 0;
botJoinChans();
}
lC++;
}
pthread_exit(NULL);
} /* End tuveCMD_Thread() */