modules: move all per-module state/config out of server.rs/config.rs into own files

This commit is contained in:
Jean Chevronnet 2026-08-09 11:18:04 +00:00
parent 0d4c9297b5
commit 131471e245
18 changed files with 525 additions and 425 deletions

View file

@ -700,7 +700,9 @@ impl Server {
u.channels.insert(key.clone());
}
// chancreate: snotice when a brand-new channel comes into being
if is_new && self.announce_chan {
if is_new
&& (self.conf_bool("chancreate", false) || self.conf_bool("announce_channels", false))
{
let who = self
.users
.get(&uid)