From 6525f9ec6675ad8ccd431ab4907112e78d72846a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 16 Feb 2022 19:38:10 +0200 Subject: [PATCH] Add rainbownotice command --- ui/command-processor.go | 3 +++ ui/commands.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ui/command-processor.go b/ui/command-processor.go index 88dfafd..5f2caae 100644 --- a/ui/command-processor.go +++ b/ui/command-processor.go @@ -92,6 +92,7 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "mstate": {"msetstate"}, "rb": {"rainbow"}, "rbme": {"rainbowme"}, + "rbn": {"rainbownotice"}, "myroomnick": {"roomnick"}, "createroom": {"create"}, "dm": {"pm"}, @@ -166,6 +167,8 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "cprof": cmdCPUProfile, "trace": cmdTrace, + "rainbownotice": cmdRainbowNotice, + "fingerprint": cmdFingerprint, "devices": cmdDevices, "verify-device": cmdVerifyDevice, diff --git a/ui/commands.go b/ui/commands.go index d2c9c63..f71f90b 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -113,6 +113,10 @@ func cmdRainbowMe(cmd *Command) { makeRainbow(cmd, event.MsgEmote) } +func cmdRainbowNotice(cmd *Command) { + makeRainbow(cmd, event.MsgNotice) +} + func cmdNotice(cmd *Command) { go cmd.Room.SendMessage(event.MsgNotice, strings.Join(cmd.Args, " ")) }