From a1feaff350ea41103d22e3b4f62e28c2e8038cf9 Mon Sep 17 00:00:00 2001 From: Aine Date: Mon, 24 Oct 2022 08:34:24 +0300 Subject: [PATCH] fix mappings check on !pm mailbox --- bot/command_owner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/command_owner.go b/bot/command_owner.go index e282f0e..88ed552 100644 --- a/bot/command_owner.go +++ b/bot/command_owner.go @@ -83,7 +83,7 @@ func (b *Bot) setOption(ctx context.Context, name, value string) { evt := eventFromContext(ctx) if name == roomOptionMailbox { - existingID, ok := b.GetMapping(value) + existingID, ok := b.getMapping(value) if ok && existingID != "" && existingID != evt.RoomID { b.SendNotice(ctx, evt.RoomID, fmt.Sprintf("Mailbox `%s@%s` already taken, kupo", value, b.domain)) return