X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fbots.c;h=ef55ef656e1b78b4a3c4c7c9255f647496559e80;hp=5097e8d47e26cd111b78acdfac54744a04847630;hb=cdebdaa89c585c948a7abbfcda22fed6b029d9da;hpb=35b06c8fa1cd7e06fdf30782c389b3bd46dce3c7 diff --git a/src/bots.c b/src/bots.c index 5097e8d..ef55ef6 100644 --- a/src/bots.c +++ b/src/bots.c @@ -40,7 +40,7 @@ static void start_zero_bots() { MYSQL_RES *res, *res2; MYSQL_ROW row; - printf_mysql_query("SELECT `nick`, `ident`, `realname`, `server`, `port`, `pass`, `textbot`, `id`, `queue`, `ssl`, `bind` FROM `bots` WHERE `botclass` = '0' AND `active` = '1'"); + printf_mysql_query("SELECT `nick`, `ident`, `realname`, `server`, `port`, `pass`, `textbot`, `id`, `queue`, `ssl`, `bind`, `secret` FROM `bots` WHERE `botclass` = '0' AND `active` = '1'"); res = mysql_use(); while ((row = mysql_fetch_row(res)) != NULL) { @@ -48,6 +48,7 @@ static void start_zero_bots() { client->flags |= (strcmp(row[6], "0") ? SOCKET_FLAG_PREFERRED : 0); client->flags |= (strcmp(row[8], "0") ? SOCKET_FLAG_USE_QUEUE : 0); client->flags |= (strcmp(row[9], "0") ? SOCKET_FLAG_SSL : 0); + client->flags |= (strcmp(row[11], "0") ? SOCKET_FLAG_SECRET_BOT : 0); client->botid = 0; client->clientid = atoi(row[7]); connect_socket(client);