add config option for logging guest regs in admin room
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e57051acd8
commit
d95c02f575
4 changed files with 13 additions and 1 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue