aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/mod
diff options
context:
space:
mode:
authorneelkamath <neelkamath@protonmail.com>2018-05-11 17:16:12 +0200
committerneelkamath <neelkamath@protonmail.com>2018-05-11 17:16:12 +0200
commit73e5c5ccfe408e58eb4bb927c71a77e0fceb22c4 (patch)
tree22b19a574ae856a6df24ce56c149da03ef440d88 /server/src/commands/mod
parentAdd license as a file in the repo as GitHub's documentation (diff)
downloadhackchat-73e5c5ccfe408e58eb4bb927c71a77e0fceb22c4.tar.gz
hackchat-73e5c5ccfe408e58eb4bb927c71a77e0fceb22c4.zip
Remove forgettable, unused, occasionally harmful (w.r.t. ES6) directive
Diffstat (limited to 'server/src/commands/mod')
-rw-r--r--server/src/commands/mod/ban.js2
-rw-r--r--server/src/commands/mod/kick.js2
-rw-r--r--server/src/commands/mod/unban.js2
3 files changed, 0 insertions, 6 deletions
diff --git a/server/src/commands/mod/ban.js b/server/src/commands/mod/ban.js
index 409217a..e19efc2 100644
--- a/server/src/commands/mod/ban.js
+++ b/server/src/commands/mod/ban.js
@@ -2,8 +2,6 @@
Description: Adds the target socket's ip to the ratelimiter
*/
-'use strict';
-
exports.run = async (core, server, socket, data) => {
if (socket.uType == 'user') {
// ignore if not mod or admin
diff --git a/server/src/commands/mod/kick.js b/server/src/commands/mod/kick.js
index f32eaf5..1797ba9 100644
--- a/server/src/commands/mod/kick.js
+++ b/server/src/commands/mod/kick.js
@@ -2,8 +2,6 @@
Description: Forces a change on the target socket's channel, then broadcasts event
*/
-'use strict';
-
exports.run = async (core, server, socket, data) => {
if (socket.uType === 'user') {
// ignore if not mod or admin
diff --git a/server/src/commands/mod/unban.js b/server/src/commands/mod/unban.js
index 2406644..d63288e 100644
--- a/server/src/commands/mod/unban.js
+++ b/server/src/commands/mod/unban.js
@@ -2,8 +2,6 @@
Description: Removes a target ip from the ratelimiter
*/
-'use strict';
-
exports.run = async (core, server, socket, data) => {
if (socket.uType == 'user') {
// ignore if not mod or admin