mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 21:06:42 +02:00
8 lines
274 B
Rust
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 }
|