Automatically calculate cooldown
This commit is contained in:
parent
d36dcc5352
commit
714d302cf9
4 changed files with 2 additions and 13 deletions
|
|
@ -81,8 +81,7 @@
|
|||
chat_antiflood: $("#opt_chat_antiflood").prop("checked"),
|
||||
chat_antiflood_params: {
|
||||
burst: $("#opt_chat_antiflood_burst").val(),
|
||||
sustained: $("#opt_chat_antiflood_sustained").val(),
|
||||
cooldown: $("#opt_chat_antiflood_cooldown").val()
|
||||
sustained: $("#opt_chat_antiflood_sustained").val()
|
||||
},
|
||||
show_public: $("#opt_show_public").prop("checked"),
|
||||
enable_link_regex: $("#opt_enable_link_regex").prop("checked"),
|
||||
|
|
|
|||
|
|
@ -1012,7 +1012,6 @@ function handleModPermissions() {
|
|||
$("#opt_chat_antiflood").prop("checked", CHANNEL.opts.chat_antiflood);
|
||||
$("#opt_chat_antiflood_burst").val(CHANNEL.opts.chat_antiflood_params.burst);
|
||||
$("#opt_chat_antiflood_sustained").val(CHANNEL.opts.chat_antiflood_params.sustained);
|
||||
$("#opt_chat_antiflood_cooldown").val(CHANNEL.opts.chat_antiflood_params.cooldown);
|
||||
$("#opt_show_public").prop("checked", CHANNEL.opts.show_public);
|
||||
$("#opt_show_public").attr("disabled", CLIENT.rank < 3);
|
||||
$("#opt_enable_link_regex").prop("checked", CHANNEL.opts.enable_link_regex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue