Auto-op the founder on join

Surface channel joins (FJOIN members, stripping the membid, and IJOIN) and
set +o for a joining user who is identified as the channel's founder.
This commit is contained in:
Jean Chevronnet 2026-07-12 10:07:02 +00:00
parent 353aee1b54
commit e785c9d8ac
No known key found for this signature in database
3 changed files with 75 additions and 7 deletions

View file

@ -15,6 +15,8 @@ pub enum NetEvent {
// A channel was created or bursted (InspIRCd FJOIN). Subsequent single joins
// arrive as IJOIN and are not surfaced.
ChannelCreate { channel: String },
// A user joined a channel (an FJOIN member or an IJOIN), for auto-op.
Join { uid: String, channel: String },
// A channel's modes changed (FMODE), for enforcing mode locks. Our own
// changes are filtered out by the protocol layer.
ChannelModeChange { channel: String, modes: String },