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);