X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonSpam.mod%2Fcmd_neonspam_set.c;h=9681d63db5b5522ce4a4e2e39bf2e5fbb717365c;hb=1f6e87eb386623e4d994e2e245d4ba2676002e1f;hp=e3956d8100e01082b0437b18bfc0808ffcabbd70;hpb=f28a6cf114ec097583236a82aab0dbf52c4852c4;p=NeonServV5.git diff --git a/src/modules/NeonSpam.mod/cmd_neonspam_set.c b/src/modules/NeonSpam.mod/cmd_neonspam_set.c index e3956d8..9681d63 100644 --- a/src/modules/NeonSpam.mod/cmd_neonspam_set.c +++ b/src/modules/NeonSpam.mod/cmd_neonspam_set.c @@ -1,4 +1,4 @@ -/* cmd_neonspam_set.c - NeonServ v5.5 +/* 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 @@ -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]);