projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dfb1a3
)
remove bot entries from `bot_binds` and `bot_channels` when got gets removed by cmd_d...
author
pk910
<philipp@zoelle1.de>
Thu, 22 Dec 2011 00:10:40 +0000
(
01:10
+0100)
committer
pk910
<philipp@zoelle1.de>
Thu, 22 Dec 2011 00:10:40 +0000
(
01:10
+0100)
src/cmd_global_delbot.c
patch
|
blob
|
history
diff --git
a/src/cmd_global_delbot.c
b/src/cmd_global_delbot.c
index 1a37dd4570536f5bfef414665d7868582bdfa3d7..a04e92b83fb3aed508745eafda9983fed0fc490f 100644
(file)
--- 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);