From: pk910 Date: Sun, 9 Sep 2012 11:29:39 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/development' X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=86a53c0bc70a1785fd0de9a172c8e3a2701a9e3c;hp=417334131fa6e5edfc9379a16c40d71db37a97e7 Merge remote-tracking branch 'origin/development' --- 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]);