diff --git a/botthread.c b/botthread.c index e8c2d0f..0dfd8fe 100644 --- a/botthread.c +++ b/botthread.c @@ -335,6 +335,7 @@ MYSQL_RES *res = 0x0; MYSQL_ROW row; time_t curTime; + short lC; curTime = time(NULL); @@ -368,7 +369,7 @@ lC++; } } - /* Find A Random Song */ + /* Find A Random Song */ getRandom: if (tmpChans->modes[CHAN_RANDOM] == 0x1) { sprintf(output,"SELECT artist,title,file,length,vid,classification,rating,count FROM videos WHERE rating <= %i AND classification = %i AND count <= %i",tmpChans->modes[CHAN_RATING],tmpChans->modes[CHAN_CLASS],playCnt); @@ -390,7 +391,7 @@ tuveBotSetSong(tmpChans->channel,"TUveD",row[0],row[1],atoi(row[3]),row[2],atoi(row[5]),atoi(row[6]),atoi(row[4])); } } - goto sE: + goto sE; gotUser: if (tmpChans->nextUser->user->userInfo.queue == 0x1) { @@ -404,11 +405,6 @@ } sE: } - } - } - else - writeLog(3,"%s Has No Users.\n",tmpChans->channel); - } } pthread_mutex_unlock(&chanMutex);