protocol: learn channel-mode arity + prefix modes (incl custom Y/ojoin) from CAPAB CHANMODES; services MODE uses the authoritative set
This commit is contained in:
parent
d313ca3523
commit
e6f05a3ede
9 changed files with 163 additions and 26 deletions
|
|
@ -1110,6 +1110,12 @@ impl Engine {
|
|||
self.db.set_live_extbans(entries);
|
||||
Vec::new()
|
||||
}
|
||||
NetEvent::ChanModeRegistry { modes } => {
|
||||
let prefixes = modes.iter().filter(|c| c.is_prefix()).map(|c| c.letter).collect::<String>();
|
||||
tracing::info!(count = modes.len(), prefixes = %prefixes, "learned ircd channel-mode set");
|
||||
self.db.set_live_chanmodes(modes);
|
||||
Vec::new()
|
||||
}
|
||||
NetEvent::UserConnect { uid, nick, host, ip } => {
|
||||
let arriving_nick = nick.clone();
|
||||
self.network.user_connect(uid.clone(), nick, host, ip.clone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue