Skip to main content

Module forbidden_names

Module forbidden_names 

Source
Expand description

Existing names the configuration forbids.

The forbidden patterns refuse new usernames and aliases only, so a name taken before a pattern was added stays in use. One check covers users, the other aliases.

Re-exportsยง

use std::fmt; ๐Ÿ”’
use std::str::from_utf8; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::TryStreamExt; ๐Ÿ”’
use regex::RegexSet; ๐Ÿ”’
use ruma::OwnedRoomAliasId; ๐Ÿ”’
use ruma::OwnedRoomId; ๐Ÿ”’
use ruma::OwnedUserId; ๐Ÿ”’
use ruma::RoomAliasId; ๐Ÿ”’
use ruma::RoomId; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::itertools::Itertools; ๐Ÿ”’
use tuwunel_core::result::NotFound; ๐Ÿ”’
use tuwunel_core::utils::BoolExt; ๐Ÿ”’
use tuwunel_core::utils::TryReadyExt; ๐Ÿ”’
use tuwunel_database::SEP; ๐Ÿ”’
use super::Check; ๐Ÿ”’
use super::Report; ๐Ÿ”’
use super::ScanExt; ๐Ÿ”’
use super::tally; ๐Ÿ”’
use crate::Services; ๐Ÿ”’

Structsยง

Alias
A local alias whose name a forbidden alias name pattern matches.
Username
An active local user whose localpart a forbidden username pattern matches.

Staticsยง

ALIASES ๐Ÿ”’
USERNAMES ๐Ÿ”’

Functionsยง

alias ๐Ÿ”’
aliases
Streams each local alias of a known room a forbidden alias name pattern matches.
matched ๐Ÿ”’
username ๐Ÿ”’
usernames
Streams each active local user a forbidden username pattern matches.