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
|
|
@ -68,7 +68,8 @@ impl Command for OperMotd {
|
|||
return CmdResult::Fail;
|
||||
}
|
||||
let nick = oper_nick(s, uid);
|
||||
if s.opermotd.is_empty() {
|
||||
let motd = s.conf_all("opermotd").to_vec();
|
||||
if motd.is_empty() {
|
||||
s.send(
|
||||
uid,
|
||||
format!(":{} NOTICE {nick} :No OPERMOTD is set", s.name),
|
||||
|
|
@ -82,7 +83,7 @@ impl Command for OperMotd {
|
|||
s.name
|
||||
),
|
||||
);
|
||||
for line in s.opermotd.clone() {
|
||||
for line in motd {
|
||||
s.send(uid, format!(":{} NOTICE {nick} :- {line}", s.name));
|
||||
}
|
||||
s.send(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue