diff options
author | marzavec <admin@marzavec.com> | 2018-05-20 00:15:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-20 00:15:34 +0200 |
commit | 7ccbf56eebc341e78737d0ff7e2a6a3c47a62281 (patch) | |
tree | 26d944fa1f36480264b7790aef5285393e97fcdd /server/src/commands/admin | |
parent | Highlight Hotfix (diff) | |
parent | npm has been pkged with node for awhile now; we neednt list every pkg manager... (diff) | |
download | hackchat-7ccbf56eebc341e78737d0ff7e2a6a3c47a62281.tar.gz hackchat-7ccbf56eebc341e78737d0ff7e2a6a3c47a62281.zip |
Merge pull request #12 from neelkamath/master
Documentation
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 | 3 | ||||
-rw-r--r-- | server/src/commands/admin/saveconfig.js | 2 | ||||
-rw-r--r-- | server/src/commands/admin/shout.js | 4 |
5 files changed, 2 insertions, 11 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..e2cfbe6 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 @@ -34,3 +32,4 @@ exports.info = { name: 'reload', description: '(Re)loads any new commands into memory, outputs errors if any' }; + 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..1358dd9 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 @@ -22,4 +20,4 @@ exports.info = { name: 'shout', usage: 'shout {text}', description: 'Displays passed text to every client connected' -}; +};
\ No newline at end of file |