aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/serverLib
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2020-03-06 18:00:30 +0100
committermarzavec <admin@marzavec.com>2020-03-06 18:00:30 +0100
commitda9cbe3dbb799b7b668c895367c7d3778f1d0e16 (patch)
tree026aebaf1c24e82043c658d29afc8cc9b0bce121 /server/src/serverLib
parentMerge pull request #89 from MinusGix/nul_initial2 (diff)
downloadhackchat-da9cbe3dbb799b7b668c895367c7d3778f1d0e16.tar.gz
hackchat-da9cbe3dbb799b7b668c895367c7d3778f1d0e16.zip
Minor UAC tweaks
Added an underscore to the uac info lib which prevents the server from attempting to use the file as a command module, allowing removal of the 'info' property and empty 'run' command
Diffstat (limited to 'server/src/serverLib')
-rw-r--r--server/src/serverLib/RateLimiter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/serverLib/RateLimiter.js b/server/src/serverLib/RateLimiter.js
index a4a0cd8..de91e5e 100644
--- a/server/src/serverLib/RateLimiter.js
+++ b/server/src/serverLib/RateLimiter.js
@@ -77,7 +77,7 @@ class RateLimiter {
return true;
}
- record.score *= Math.pow(2, -(Date.now() - record.time ) / this.halflife);
+ record.score *= Math.pow(2, -(Date.now() - record.time) / this.halflife);
record.score += deltaScore;
record.time = Date.now();