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);
|
||||
|
|
|
|||
|
|
@ -43,13 +43,6 @@
|
|||
<input type="text" id="opt_chat_antiflood_sustained">
|
||||
</div>
|
||||
</div>
|
||||
<!-- chat flood cooldown -->
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="opt_chat_antiflood_cooldown" title="The number of seconds since the last message before someone can burst again">Cooldown time after being throttled (seconds)</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="opt_chat_antiflood_cooldown">
|
||||
</div>
|
||||
</div>
|
||||
<!-- convert URLs to links -->
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="opt_enable_link_regex">Convert URLs in chat to links</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue