fixed spamlimit setting mysql query
authorpk910 <philipp@zoelle1.de>
Tue, 23 Oct 2012 16:23:41 +0000 (18:23 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 23 Oct 2012 16:23:41 +0000 (18:23 +0200)
src/modules/NeonSpam.mod/cmd_neonspam_set.c

index 9681d63db5b5522ce4a4e2e39bf2e5fbb717365c..f97637626198604e551ef1e8fe842419e18ae2bf 100644 (file)
@@ -502,7 +502,7 @@ static char* neonspam_cmd_set_spamlimit(struct ClientSocket *client, struct Clie
             reply(textclient, user, "SS_SET_SPAMLIMIT", amount, 2, 10);
             return NULL;
         }
-        printf_mysql_query("UPDATE `channels` SET `channel_maxrepeat` = '%d' WHERE `channel_id` = '%d' ", amount, chan->channel_id);
+        printf_mysql_query("UPDATE `channels` SET `channel_spam_limit` = '%d' WHERE `channel_id` = '%d' ", amount, chan->channel_id);
         sprintf(retBuf, "%d", amount);
         chan->spam_settings->spam_amount = amount;
     } else