From 4e253697de673dbb67f5a0fb19d3e734e8c10242 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 7 Dec 2020 16:20:31 +0100 Subject: [PATCH] stylize weechat invite instructions --- src/open/clients/Weechat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/open/clients/Weechat.js b/src/open/clients/Weechat.js index 9d37efc..49ceb7a 100644 --- a/src/open/clients/Weechat.js +++ b/src/open/clients/Weechat.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {Maturity, Platform, LinkKind, WebsiteLink} from "../types.js"; +import {Maturity, Platform, LinkKind, WebsiteLink, style} from "../types.js"; /** * Information on how to deep link to a given matrix client. @@ -33,8 +33,8 @@ export class Weechat { getLinkInstructions(platform, link) { switch (link.kind) { - case LinkKind.User: return `Type /invite ${link.identifier}`; - case LinkKind.Room: return `Type /join ${link.identifier}`; + case LinkKind.User: return [`Type `, style.code(`/invite ${link.identifier}`)]; + case LinkKind.Room: return [`Type `, style.code(`/join ${link.identifier}`)]; } }