From ea95f2895e527f8f5def247cf747b35e51f1d65f Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 22 Dec 2011 01:10:40 +0100 Subject: [PATCH] remove bot entries from `bot_binds` and `bot_channels` when got gets removed by cmd_delbot --- src/cmd_global_delbot.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.20.1