1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-09-29 19:28:53 +02:00

Merge branch 'admin-command-fix' into 'next'

Recognize admin commands without : after tag

See merge request famedly/conduit!470
This commit is contained in:
Timo Kösters 2023-05-17 19:09:54 +00:00
commit dbbd164e39

View file

@ -443,7 +443,8 @@ impl Service {
)?;
let server_user = format!("@conduit:{}", services().globals.server_name());
let to_conduit = body.starts_with(&format!("{server_user}: "));
let to_conduit = body.starts_with(&format!("{server_user}: "))
|| body.starts_with(&format!("{server_user} "));
// This will evaluate to false if the emergency password is set up so that
// the administrator can execute commands as conduit