X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fbot_DummyServ.c;h=dc957393e02fa9ca40ff64c94c0cdf55b542950b;hb=5a9d04e79a4d27880eb5a588cbc50e00a4cd26aa;hp=f6fc7aca827d2d437243f7e15c7c9cee3ce99df2;hpb=be17e22b842b7b831694422b204777c93fd478bb;p=NeonServV5.git diff --git a/src/bot_DummyServ.c b/src/bot_DummyServ.c index f6fc7ac..dc95739 100644 --- a/src/bot_DummyServ.c +++ b/src/bot_DummyServ.c @@ -82,7 +82,7 @@ static void start_bots() { connect_socket(client); } - printf_mysql_query("SELECT `command`, `function`, `parameters`, `global_access`, `chan_access` FROM `bot_binds` WHERE `botclass` = '%d'", BOTID); + printf_mysql_query("SELECT `command`, `function`, `parameters`, `global_access`, `chan_access`, `flags` FROM `bot_binds` WHERE `botclass` = '%d'", BOTID); res2 = mysql_use(); while ((row = mysql_fetch_row(res2)) != NULL) { if(bind_cmd_to_command(BOTID, row[0], row[1])) { @@ -95,6 +95,8 @@ static void start_bots() { if(row[4]) { bind_set_channel_access(BOTID, row[0], row[4]); } + if(strcmp(row[5], "0")) + bind_set_bind_flags(BOTID, row[0], atoi(row[5])); } } bind_unbound_required_functions(BOTID);