}
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);