Do not append @domain twice when updating mailbox
Fixes a regression introduced in 13776ad7
This commit is contained in:
@@ -295,9 +295,5 @@ func (b *Bot) setOption(ctx context.Context, name, value string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if name == optionMailbox {
|
|
||||||
value = value + "@" + b.domain
|
|
||||||
}
|
|
||||||
|
|
||||||
b.Notice(ctx, evt.RoomID, fmt.Sprintf("`%s` of this room set to `%s`", name, value))
|
b.Notice(ctx, evt.RoomID, fmt.Sprintf("`%s` of this room set to `%s`", name, value))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user