From 4b1ce195b4fe017a34784384f37a37b81941fbb6 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 31 Aug 2022 09:16:16 +0300 Subject: [PATCH] Do not append domain twice when updating mailbox (again) Fixes: > `mailbox` of this room set to `test@domain@domain` Previously fixed in 97a4d6c7bc961eb8, but it seems like we unintentionally reintroduced this bug again at some point after that. --- bot/command_owner.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bot/command_owner.go b/bot/command_owner.go index becd5fe..962b8a8 100644 --- a/bot/command_owner.go +++ b/bot/command_owner.go @@ -98,9 +98,5 @@ func (b *Bot) setOption(ctx context.Context, name, value string) { return } - if name == roomOptionMailbox { - value = value + "@" + b.domain - } - b.SendNotice(ctx, evt.RoomID, fmt.Sprintf("`%s` of this room set to `%s`", name, value)) }