aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/mod
diff options
context:
space:
mode:
authorneelkamath <neelkamath@protonmail.com>2018-05-12 10:43:12 +0200
committerneelkamath <neelkamath@protonmail.com>2018-05-12 10:43:12 +0200
commitacbad15f2bc4a6733407bc17e1a5b4190ed3b287 (patch)
treede0ae1446b5515a494ae03c517ed5b748935d6bd /server/src/commands/mod
parentRemove help.js as we need human, not programmatic documentation for this (diff)
downloadhackchat-acbad15f2bc4a6733407bc17e1a5b4190ed3b287.tar.gz
hackchat-acbad15f2bc4a6733407bc17e1a5b4190ed3b287.zip
Remove unused object fields
Diffstat (limited to 'server/src/commands/mod')
-rw-r--r--server/src/commands/mod/ban.js6
-rw-r--r--server/src/commands/mod/kick.js6
-rw-r--r--server/src/commands/mod/unban.js6
3 files changed, 3 insertions, 15 deletions
diff --git a/server/src/commands/mod/ban.js b/server/src/commands/mod/ban.js
index e19efc2..b2749ae 100644
--- a/server/src/commands/mod/ban.js
+++ b/server/src/commands/mod/ban.js
@@ -57,8 +57,4 @@ exports.run = async (core, server, socket, data) => {
exports.requiredData = ['nick'];
-exports.info = {
- name: 'ban',
- usage: 'ban {nick}',
- description: 'Disconnects the target nickname in the same channel as calling socket & adds to ratelimiter'
-};
+exports.info = { name: 'ban' };
diff --git a/server/src/commands/mod/kick.js b/server/src/commands/mod/kick.js
index 1797ba9..5c72160 100644
--- a/server/src/commands/mod/kick.js
+++ b/server/src/commands/mod/kick.js
@@ -71,8 +71,4 @@ exports.run = async (core, server, socket, data) => {
exports.requiredData = ['nick'];
-exports.info = {
- name: 'kick',
- usage: 'kick {nick}',
- description: 'Silently forces target client(s) into another channel. `nick` may be string or array of strings'
-};
+exports.info = { name: 'kick' };
diff --git a/server/src/commands/mod/unban.js b/server/src/commands/mod/unban.js
index d63288e..5450858 100644
--- a/server/src/commands/mod/unban.js
+++ b/server/src/commands/mod/unban.js
@@ -48,8 +48,4 @@ exports.run = async (core, server, socket, data) => {
core.managers.stats.decrement('users-banned');
};
-exports.info = {
- name: 'unban',
- usage: 'unban {[ip || hash]}',
- description: 'Removes target ip from the ratelimiter'
-};
+exports.info = { name: 'unban' };