From: pk910 Date: Thu, 22 Dec 2011 00:10:40 +0000 (+0100) Subject: remove bot entries from `bot_binds` and `bot_channels` when got gets removed by cmd_d... X-Git-Tag: v5.3~120 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=ea95f2895e527f8f5def247cf747b35e51f1d65f remove bot entries from `bot_binds` and `bot_channels` when got gets removed by cmd_delbot --- diff --git a/src/cmd_global_delbot.c b/src/cmd_global_delbot.c index 1a37dd4..a04e92b 100644 --- a/src/cmd_global_delbot.c +++ b/src/cmd_global_delbot.c @@ -32,6 +32,8 @@ CMD_BIND(global_cmd_delbot) { } int botid = atoi(row[0]); printf_mysql_query("DELETE FROM `bots` WHERE `id` = '%s'", row[0]); + printf_mysql_query("DELETE FROM `bot_binds` WHERE `botid` = '%s'", row[0]); + printf_mysql_query("DELETE FROM `bot_channels` WHERE `botid` = '%s'", row[0]); for(client = getBots(0, NULL); client; client = getBots(0, client)) { if(client->clientid == botid) { close_socket(client);