From c1ea98f55d20d8fd70d48a85d22c258780fd15f8 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 21 Jan 2020 13:13:46 -0700 Subject: [PATCH] Fix logging for status command --- src/commands/StatusCommand.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/StatusCommand.ts b/src/commands/StatusCommand.ts index 209f1cd..665fb15 100644 --- a/src/commands/StatusCommand.ts +++ b/src/commands/StatusCommand.ts @@ -1,5 +1,5 @@ /* -Copyright 2019 The Matrix.org Foundation C.I.C. +Copyright 2019, 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -48,7 +48,7 @@ export async function execStatusCommand(roomId: string, event: any, mjolnir: Mjo } html += `Protected rooms: ${Object.keys(mjolnir.protectedRooms).length}
`; - text += `Protected rooms: ${mjolnir.protectedRooms.length}\n`; + text += `Protected rooms: ${Object.keys(mjolnir.protectedRooms).length}\n`; // Append list information html += "Subscribed ban lists:
"; const reply = RichReply.createFor(roomId, event, text, html);