diff options
author | neelkamath <neelkamath@protonmail.com> | 2018-05-11 17:16:12 +0200 |
---|---|---|
committer | neelkamath <neelkamath@protonmail.com> | 2018-05-11 17:16:12 +0200 |
commit | 73e5c5ccfe408e58eb4bb927c71a77e0fceb22c4 (patch) | |
tree | 22b19a574ae856a6df24ce56c149da03ef440d88 /server/src/commands/admin | |
parent | Add license as a file in the repo as GitHub's documentation (diff) | |
download | hackchat-73e5c5ccfe408e58eb4bb927c71a77e0fceb22c4.tar.gz hackchat-73e5c5ccfe408e58eb4bb927c71a77e0fceb22c4.zip |
Remove forgettable, unused, occasionally harmful (w.r.t. ES6) directive
Diffstat (limited to 'server/src/commands/admin')
-rw-r--r-- | server/src/commands/admin/addmod.js | 2 | ||||
-rw-r--r-- | server/src/commands/admin/listusers.js | 2 | ||||
-rw-r--r-- | server/src/commands/admin/reload.js | 2 | ||||
-rw-r--r-- | server/src/commands/admin/saveconfig.js | 2 | ||||
-rw-r--r-- | server/src/commands/admin/shout.js | 2 |
5 files changed, 0 insertions, 10 deletions
diff --git a/server/src/commands/admin/addmod.js b/server/src/commands/admin/addmod.js index e9dde2c..4c13b22 100644 --- a/server/src/commands/admin/addmod.js +++ b/server/src/commands/admin/addmod.js @@ -2,8 +2,6 @@ Description: Adds the target trip to the mod list then elevates the uType */ -'use strict'; - exports.run = async (core, server, socket, data) => { if (socket.uType != 'admin') { // ignore if not admin diff --git a/server/src/commands/admin/listusers.js b/server/src/commands/admin/listusers.js index 226b000..a539a3c 100644 --- a/server/src/commands/admin/listusers.js +++ b/server/src/commands/admin/listusers.js @@ -2,8 +2,6 @@ Description: Outputs all current channels and their user nicks */ -'use strict'; - exports.run = async (core, server, socket, data) => { if (socket.uType != 'admin') { // ignore if not admin diff --git a/server/src/commands/admin/reload.js b/server/src/commands/admin/reload.js index 387ae97..4e22a95 100644 --- a/server/src/commands/admin/reload.js +++ b/server/src/commands/admin/reload.js @@ -2,8 +2,6 @@ Description: Clears and resets the command modules, outputting any errors */ -'use strict'; - exports.run = async (core, server, socket, data) => { if (socket.uType != 'admin') { // ignore if not admin diff --git a/server/src/commands/admin/saveconfig.js b/server/src/commands/admin/saveconfig.js index 0c4e0c9..ed3a312 100644 --- a/server/src/commands/admin/saveconfig.js +++ b/server/src/commands/admin/saveconfig.js @@ -2,8 +2,6 @@ Description: Writes any changes to the config to the disk */ -'use strict'; - exports.run = async (core, server, socket, data) => { if (socket.uType != 'admin') { // ignore if not admin diff --git a/server/src/commands/admin/shout.js b/server/src/commands/admin/shout.js index 736134a..4ebf696 100644 --- a/server/src/commands/admin/shout.js +++ b/server/src/commands/admin/shout.js @@ -2,8 +2,6 @@ Description: Emmits a server-wide message as `info` */ -'use strict'; - exports.run = async (core, server, socket, data) => { if (socket.uType != 'admin') { // ignore if not admin |