continuwuity/src/utils/server_name.rs
strawberry 9931e60050 use single global function for server name local and user local checking
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-03 01:52:29 -04:00

8 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 }