projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95bd28e
)
fixed cmd_neonspam_set.c neonspam_cmd_set_reaction_time: use converted value...
author
pk910
<philipp@zoelle1.de>
Sun, 9 Sep 2012 11:29:09 +0000
(13:29 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 9 Sep 2012 11:29:09 +0000
(13:29 +0200)
src/modules/NeonSpam.mod/cmd_neonspam_set.c
patch
|
blob
|
history
diff --git
a/src/modules/NeonSpam.mod/cmd_neonspam_set.c
b/src/modules/NeonSpam.mod/cmd_neonspam_set.c
index fdf742a9ac532efc8febf9d2a7c151c6758bbb0f..9681d63db5b5522ce4a4e2e39bf2e5fbb717365c 100644
(file)
--- 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;
}
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]);
} else {
if(neonspam_settings_row) {
duration = atoi(neonspam_settings_row[mysqlindex] ? neonspam_settings_row[mysqlindex] : neonspam_settings_defaults[mysqlindex]);