From bc2ce8e4b8c64a6ea849cb78a8cf0d0e9e4da7a3 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 23 Oct 2012 18:23:41 +0200 Subject: [PATCH] fixed spamlimit setting mysql query --- src/modules/NeonSpam.mod/cmd_neonspam_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/NeonSpam.mod/cmd_neonspam_set.c b/src/modules/NeonSpam.mod/cmd_neonspam_set.c index 9681d63..f976376 100644 --- a/src/modules/NeonSpam.mod/cmd_neonspam_set.c +++ b/src/modules/NeonSpam.mod/cmd_neonspam_set.c @@ -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 -- 2.20.1