X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fbot_NeonHelp.c;h=65df0fe142a48e9694969e302c0dc7481af7675f;hb=003f6906aeb911cce26ee25b48a818d0d1c4aea5;hp=3ced05c27bad67e79d1626aa57c657707687a9a2;hpb=29181b1682d291ff9cf535b6d43a9660df93a73d;p=NeonServV5.git diff --git a/src/bot_NeonHelp.c b/src/bot_NeonHelp.c index 3ced05c..65df0fe 100644 --- a/src/bot_NeonHelp.c +++ b/src/bot_NeonHelp.c @@ -18,6 +18,15 @@ #include "bot_NeonHelp.h" #include "modcmd.h" #include "cmd_neonhelp.h" +#include "mysqlConn.h" +#include "ClientSocket.h" +#include "UserNode.h" +#include "ChanNode.h" +#include "ChanUser.h" +#include "IRCEvents.h" +#include "IRCParser.h" +#include "bots.h" +#include "DBHelper.h" #define BOTID 4 #define BOTALIAS "NeonHelp" @@ -55,13 +64,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);