Format options as code in getOption as well

This is like 10f44e621d (which handled `setOption()`), but for `getOption()`.
This commit is contained in:
Slavi Pantaleev
2022-08-26 09:58:25 +03:00
parent 10f44e621d
commit 5c443ec7aa

View File

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