From: pk910 Date: Sun, 9 Sep 2012 11:29:09 +0000 (+0200) Subject: fixed cmd_neonspam_set.c neonspam_cmd_set_reaction_time: use converted value... X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=1f6e87eb386623e4d994e2e245d4ba2676002e1f;hp=95bd28ec51fedaf57a7a9d65475c021569cef755 fixed cmd_neonspam_set.c neonspam_cmd_set_reaction_time: use converted value... --- diff --git a/src/modules/NeonSpam.mod/cmd_neonspam_set.c b/src/modules/NeonSpam.mod/cmd_neonspam_set.c index fdf742a..9681d63 100644 --- a/src/modules/NeonSpam.mod/cmd_neonspam_set.c +++ b/src/modules/NeonSpam.mod/cmd_neonspam_set.c @@ -423,7 +423,7 @@ static char* neonspam_cmd_set_reaction_time(struct ClientSocket *client, struct 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]);