-/* cmd_neonspam_set.c - NeonServ v5.4
+/* cmd_neonspam_set.c - NeonServ v5.6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
reply(textclient, user, "NS_TIMEBAN_DURATION_TOO_SHORT", 30);
return NULL;
}
- printf_mysql_query("UPDATE `channels` SET `%s` = '%s' WHERE `channel_id` = '%d' ", mysqlfield, argument, chan->channel_id);
+ printf_mysql_query("UPDATE `channels` SET `%s` = '%d' WHERE `channel_id` = '%d' ", mysqlfield, duration, chan->channel_id);
} else {
if(neonspam_settings_row) {
duration = atoi(neonspam_settings_row[mysqlindex] ? neonspam_settings_row[mysqlindex] : neonspam_settings_defaults[mysqlindex]);
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