X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fbot_NeonSpam.c;h=0431f4a6665be84fc000f47b36b4b4abce1c5596;hp=056a82e9d7a4980c4a6edc720dba5f8b0fabefaa;hb=003f6906aeb911cce26ee25b48a818d0d1c4aea5;hpb=ce8592c1645f9657c5bc5fb2d0b2d6fca261b9e7 diff --git a/src/bot_NeonSpam.c b/src/bot_NeonSpam.c index 056a82e..0431f4a 100644 --- a/src/bot_NeonSpam.c +++ b/src/bot_NeonSpam.c @@ -147,13 +147,14 @@ static void start_bots() { MYSQL_RES *res, *res2; MYSQL_ROW row; - printf_mysql_query("SELECT `nick`, `ident`, `realname`, `server`, `port`, `pass`, `textbot`, `id`, `queue` FROM `bots` WHERE `botclass` = '%d' AND `active` = '1'", BOTID); + printf_mysql_query("SELECT `nick`, `ident`, `realname`, `server`, `port`, `pass`, `textbot`, `id`, `queue`, `ssl` FROM `bots` WHERE `botclass` = '%d' AND `active` = '1'", BOTID); res = mysql_use(); while ((row = mysql_fetch_row(res)) != NULL) { client = create_socket(row[3], atoi(row[4]), row[5], row[0], row[1], row[2]); 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->botid = BOTID; client->clientid = atoi(row[7]); connect_socket(client);