added NeonFun Bot with UNO Game
[NeonServV5.git] / src / modules / global.mod / cmd_global_setbot.c
index 88ffeacec1703058c863372cd432491baab0030c..8b58b726cf4c4ddb4e1bf5fa35aa936109742e14 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_setbot.c - NeonServ v5.3
+/* cmd_global_setbot.c - NeonServ v5.4
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -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;
@@ -469,7 +469,7 @@ static int global_cmd_setbot_prefered(struct UserNode *user, MYSQL_ROW bot, char
                 break;
             }
         }
-        printf_mysql_query("UPDATE `bots` SET `prefered` = '%d' WHERE `id` = '%s'", val, bot[15]);
+        printf_mysql_query("UPDATE `bots` SET `textbot` = '%d' WHERE `id` = '%s'", val, bot[15]);
         ret = 1;
     }
     reply(getTextBot(), user, "\002PREFERED   \002 %s", get_language_string(user, (val ? "NS_SET_ON" : "NS_SET_OFF")));