fixed small cmd_setbot error
authorpk910 <philipp@zoelle1.de>
Fri, 6 Jan 2012 23:32:50 +0000 (00:32 +0100)
committerpk910 <philipp@zoelle1.de>
Fri, 6 Jan 2012 23:32:50 +0000 (00:32 +0100)
src/cmd_global_setbot.c

index 0654dd1776055303e80a62bb83381d3c5664c6c3..e823a9e0f8360ec2ccd1cd9947a58ea778360071 100644 (file)
@@ -469,7 +469,7 @@ static int global_cmd_setbot_prefered(struct UserNode *user, MYSQL_ROW bot, char
                 break;
             }
         }
-        printf_mysql_query("UPDATE `bots` SET `queue` = '%d' WHERE `id` = '%s'", val, bot[15]);
+        printf_mysql_query("UPDATE `bots` SET `prefered` = '%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")));