fixed small mysql error on cmd_setbot
authorpk910 <philipp@zoelle1.de>
Thu, 22 Dec 2011 00:27:04 +0000 (01:27 +0100)
committerpk910 <philipp@zoelle1.de>
Thu, 22 Dec 2011 00:27:04 +0000 (01:27 +0100)
src/cmd_global_setbot.c

index 99587d6f4cd58e5964e00340500d80508f316ac0..767171580bd7e4577cc70d7d5f45684658b934f4 100644 (file)
@@ -477,7 +477,7 @@ static int global_cmd_setbot_maxchan(struct UserNode *user, MYSQL_ROW bot, char
             reply(getTextBot(), user, "NS_SETBOT_MAXCHAN_INVALID", value);
             return 0;
         }
-        printf_mysql_query("UPDATE `bots` SET `maxchan` = '%d' WHERE `id` = '%s'", val, bot[15]);
+        printf_mysql_query("UPDATE `bots` SET `max_channels` = '%d' WHERE `id` = '%s'", val, bot[15]);
         ret = 1;
     }
     reply(getTextBot(), user, "\002MAXCHAN    \002 %d", val);