From 723951a07bf007733deda3e7f2a6bb0bc271ec77 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 18 Nov 2021 10:19:20 -0500 Subject: [PATCH] commands: Add LIST command Signed-off-by: Cara Salter --- commands.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/commands.js b/commands.js index 7f13792..5f2d5d9 100644 --- a/commands.js +++ b/commands.js @@ -411,4 +411,12 @@ export default { markServerBufferUnread(app); }, }, + "list": { + usage: "[filter]", + description: "Retrieve a list of channels from a network", + execute: (app, args) => { + getActiveClient(app).send({ command: "LIST", params: args }); + markServerBufferUnread(app); + }, + }, };