From 5c443ec7aa58d280dc9a0c0997e8bdfe3ff9b4b9 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 26 Aug 2022 09:58:25 +0300 Subject: [PATCH] Format options as code in getOption as well This is like 10f44e621dbd2 (which handled `setOption()`), but for `getOption()`. --- bot/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/command.go b/bot/command.go index 721d989..b0336a6 100644 --- a/bot/command.go +++ b/bot/command.go @@ -174,7 +174,7 @@ func (b *Bot) handleOption(ctx context.Context, command []string) { } func (b *Bot) getOption(ctx context.Context, name string) { - msg := "`%s` of this room is %s" + msg := "`%s` of this room is `%s`" evt := eventFromContext(ctx) cfg, err := b.getSettings(evt.RoomID)