Files
continuwuity/src/utils/server_name.rs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
274 B
Rust
Raw Normal View History

//! 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 }