aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/admin/listusers.js
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2019-02-02 22:34:06 +0100
committermarzavec <admin@marzavec.com>2019-02-02 22:34:06 +0100
commit02f6fbf70153241ce45b9c880664566f2d1ede86 (patch)
tree27f9bfbfd572342dc7c559088ad155bbf0d9d0ee /server/src/commands/admin/listusers.js
parentMerge pull request #51 from MinusGix/patch-2 (diff)
downloadhackchat-02f6fbf70153241ce45b9c880664566f2d1ede86.tar.gz
hackchat-02f6fbf70153241ce45b9c880664566f2d1ede86.zip
Minor module changes
Added trips to listusers output. Added 'reason' to reload broadcast. Fixed removemod bug. Added /nick hook to changenick. Added 'type' and 'from' fields to invite event.
Diffstat (limited to 'server/src/commands/admin/listusers.js')
-rw-r--r--server/src/commands/admin/listusers.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/commands/admin/listusers.js b/server/src/commands/admin/listusers.js
index 85fc078..472b89d 100644
--- a/server/src/commands/admin/listusers.js
+++ b/server/src/commands/admin/listusers.js
@@ -20,7 +20,10 @@ exports.run = async (core, server, socket, data) => {
if (typeof channels[currentUsers[i].channel] === 'undefined') {
channels[currentUsers[i].channel] = [];
}
- channels[currentUsers[i].channel].push(currentUsers[i].nick);
+
+ channels[currentUsers[i].channel].push(
+ `[${currentUsers[i].trip||'null'}]${currentUsers[i].nick}`
+ );
}
// build output