modules: move all per-module state/config out of server.rs/config.rs into own files
This commit is contained in:
parent
0d4c9297b5
commit
131471e245
18 changed files with 525 additions and 425 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue