multiple fixes
[NeonServV5.git] / src / modules / global.mod / cmd_global_setbot.c
index 88ffeacec1703058c863372cd432491baab0030c..a95f8c360395026435171d0830cfc6f6a5d987ed 100644 (file)
@@ -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;