X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fbot_NeonSpam.c;h=0d9c5de855e401656f032fdd9ae9d82e58b05197;hb=c254e7d9a1622b19aae9b4ebecb4082657288f4a;hp=911c9b8cad4cac7f0cffdf836a18b4da0bd81be0;hpb=ff6c5041af889bbc986199316daba8676b8e9cfd;p=NeonServV5.git diff --git a/src/bot_NeonSpam.c b/src/bot_NeonSpam.c index 911c9b8..0d9c5de 100644 --- a/src/bot_NeonSpam.c +++ b/src/bot_NeonSpam.c @@ -61,6 +61,8 @@ static struct NeonSpamJoinNode *getNeonSpamJoinNode(struct ChanUser *chanuser); #define SPAMSERV_MSG_JOINFLOOD "Join flooding the channel" #define SPAMSERV_MSG_WARNING "%s is against the channel rules" #define SPAMSERV_MSG_BOTNET "BotNet detected." +#define SPAMSERV_MSG_CAPS "Using too many chars in UPPER CASE" +#define SPAMSERV_MSG_DIGIT "Using too many numeric chars" //EVENTS #include "event_neonspam_join.c" @@ -100,7 +102,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) { @@ -111,6 +113,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);