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/mod | |
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/mod')
-rw-r--r-- | server/src/commands/mod/ban.js | 2 | ||||
-rw-r--r-- | server/src/commands/mod/kick.js | 4 | ||||
-rw-r--r-- | server/src/commands/mod/unban.js | 4 |
3 files changed, 2 insertions, 8 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..157592d 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 @@ -77,4 +75,4 @@ exports.info = { name: 'kick', usage: 'kick {nick}', description: 'Silently forces target client(s) into another channel. `nick` may be string or array of strings' -}; +};
\ No newline at end of file diff --git a/server/src/commands/mod/unban.js b/server/src/commands/mod/unban.js index 2406644..e82f0b9 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 @@ -54,4 +52,4 @@ exports.info = { name: 'unban', usage: 'unban {[ip || hash]}', description: 'Removes target ip from the ratelimiter' -}; +};
\ No newline at end of file |