mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
9931e60050
Signed-off-by: strawberry <strawberry@puppygock.gay>
9 lines
274 B
Rust
9 lines
274 B
Rust
//! utilities for doing/checking things with ServerName's/server_name's
|
|
|
|
use ruma::ServerName;
|
|
|
|
use crate::services;
|
|
|
|
/// checks if `server_name` is ours
|
|
pub(crate) fn server_is_ours(server_name: &ServerName) -> bool { server_name == services().globals.config.server_name }
|