diff --git a/botthread.c b/botthread.c index d3b48dc..b05036c 100644 --- a/botthread.c +++ b/botthread.c @@ -49,6 +49,7 @@ row = mysql_fetch_row(res); sprintf(output,"INSERT INTO active (gid,uid,userid) VALUES(%s,%s,%lld)",row[1],row[2],userConnection->userInfo.uid); dbQuery(output,0); + sSendData(findNick("TUveBOT"),"MSG LOGIN:%lld"); if (atoi(row[1]) == 1) { sprintf(output,"EMOTE:%s:STATUS:Is now an Evil Overlord!",userConnection->userInfo.username); tuveSendAllInUsersChans(userConnection,output); @@ -143,7 +144,6 @@ break; case 'e': case 'E': - writeLog(0,"BLAH\n"); if (dM == 0) { tmpChan->modes[CHAN_EXCLUSIVE] = 0; sprintf(output,"MSG:TUveD:%s:%s Sets Mode %cExclusive",chan,userConnection->userInfo.username,dMS[dM]); diff --git a/tuved.h b/tuved.h index eb0bd74..9a853c4 100644 --- a/tuved.h +++ b/tuved.h @@ -148,6 +148,7 @@ int sSendPing(time_t); // Sends Ping To All Sockets int sCleanConnections(); // Cleans Up The Dead Connections int sSendData(myConnections_t *con,char const * __restrict fmt, ...); // Sends Data To A Socket +int tuveGetData(myConnections_t *userConnection); /* * End Socket functions */ @@ -210,8 +211,6 @@ /* * End Database Functions */ - -int tuveGetData(myConnections_t *userConnection); /* Lib Functions */ int formatTime(time_t sTime,char *output);