summary refs log tree commit diff
path: root/commands.ts
diff options
context:
space:
mode:
Diffstat (limited to 'commands.ts')
-rw-r--r--commands.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.ts b/commands.ts
index 8a93c8a..fbde383 100644
--- a/commands.ts
+++ b/commands.ts
@@ -87,9 +87,9 @@ export const commands: {[key: string]: Command} = {
         aliases: [],
         command({ user, server, args }) {
             user.socket.send(
-                `Users${args[0] != "global" ? ` in ${user.channel}` : ""}:\n${Object.values(server.users)
-                    .filter((usr) => usr.channel == user.channel || args[0] == "global")
-                    .map((usr) => ` * ${usr.name()}`)
+                `Users${args[0] != "global" ? ` in ${user.channel}` : ""}:\n${[...server.users.entries()]
+                    .filter(([_, usr]) => usr.channel == user.channel || args[0] == "global")
+                    .map<string>(([_, usr]) => ` * ${usr.name()}`)
                     .join("\n")}`
             );
         },