X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules%2Fglobal.mod%2Fcmd_global_setbot.c;h=a95f8c360395026435171d0830cfc6f6a5d987ed;hp=88ffeacec1703058c863372cd432491baab0030c;hb=902ebfe5551be2daa3edf8141bcee91f62c0a5e0;hpb=8a990d2c87f8f8a6ca26dd2c6afef161dab2eb9e diff --git a/src/modules/global.mod/cmd_global_setbot.c b/src/modules/global.mod/cmd_global_setbot.c index 88ffeac..a95f8c3 100644 --- a/src/modules/global.mod/cmd_global_setbot.c +++ b/src/modules/global.mod/cmd_global_setbot.c @@ -385,7 +385,7 @@ static int global_cmd_setbot_class(struct UserNode *user, MYSQL_ROW bot, char *v struct ClientSocket *client; for(client = getBots(0, NULL); client; client = getBots(0, client)) { if(client->clientid == atoi(bot[15])) { - unbind_botwise_allcmd(client->clientid); + unbind_botwise_allcmd(0, client->clientid); client->botid = val; if(client->botid == 0) { MYSQL_RES *res;