add config option for logging guest regs in admin room

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-13 20:19:10 -04:00 committed by June
parent e57051acd8
commit d95c02f575
4 changed files with 13 additions and 1 deletions

View file

@ -290,7 +290,7 @@ pub async fn register_route(body: Ruma<register::v3::Request>) -> Result<registe
}
// log in conduit admin channel if a guest registered
if !body.from_appservice && is_guest {
if !body.from_appservice && is_guest && services().globals.log_guest_registrations() {
services()
.admin
.send_message(RoomMessageEventContent::notice_plain(format!(