X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fbot_NeonServ.c;h=3e87c372d224cc0322d0a4e04a92be306449570e;hp=34414f02a5167edfbc167972b9e2f6d351f5fdb7;hb=c254e7d9a1622b19aae9b4ebecb4082657288f4a;hpb=f382604f92a17a854a34afc12f9429f5acfd3d5d diff --git a/src/bot_NeonServ.c b/src/bot_NeonServ.c index 34414f0..3e87c37 100644 --- a/src/bot_NeonServ.c +++ b/src/bot_NeonServ.c @@ -383,7 +383,7 @@ static void start_bots() { MYSQL_RES *res, *res2; MYSQL_ROW row; - printf_mysql_query("SELECT `nick`, `ident`, `realname`, `server`, `port`, `pass`, `textbot`, `id` FROM `bots` WHERE `botclass` = '%d' AND `active` = '1'", BOTID); + printf_mysql_query("SELECT `nick`, `ident`, `realname`, `server`, `port`, `pass`, `textbot`, `id`, `queue` FROM `bots` WHERE `botclass` = '%d' AND `active` = '1'", BOTID); res = mysql_use(); while ((row = mysql_fetch_row(res)) != NULL) { @@ -394,6 +394,7 @@ static void start_bots() { user->flags |= USERFLAG_ISBOT; client = create_socket(row[3], atoi(row[4]), row[5], user); client->flags |= (strcmp(row[6], "0") ? SOCKET_FLAG_PREFERRED : 0); + client->flags |= (strcmp(row[8], "0") ? SOCKET_FLAG_USE_QUEUE : 0); client->botid = BOTID; client->clientid = atoi(row[7]); connect_socket(client);