diff options
| author | 2026-03-12 15:15:38 +0000 | |
|---|---|---|
| committer | 2026-03-12 15:38:54 +0000 | |
| commit | 7ed7c7ba0dfd3f73a7d8a621988d7e99f07a23ef (patch) | |
| tree | 1f98a809b4018a6cabfe17aa2549507072840438 /src/modules.cpp | |
| parent | Move channel settings to the <channels> tag. (diff) | |
Move <options:defaultmodes> to <channels> and rework.
- The default prefix modes are now separate from the default channel
modes. This should result in less accidentally broken configs.
- The privs are now pre-parsed to a list of mode references. This
should improve performance slightly as the repeated mode lookups
are gone. It also allows us to write warnings to the debug log
when the default privs are invalid.
- Channels can now have a default topic.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index d7b50a99c..2527ae389 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -119,7 +119,7 @@ void Module::OnPostJoin(Membership*) { DetachEvent(I_OnPostJoin); } void Module::OnUserPart(Membership*, std::string&, CUList&) { DetachEvent(I_OnUserPart); } void Module::OnPreRehash(User*, const std::string&) { DetachEvent(I_OnPreRehash); } void Module::OnModuleRehash(User*, const std::string&) { DetachEvent(I_OnModuleRehash); } -ModResult Module::OnUserPreJoin(LocalUser*, Channel*, const std::string&, std::string&, const std::string&, bool) { DetachEvent(I_OnUserPreJoin); return MOD_RES_PASSTHRU; } +ModResult Module::OnUserPreJoin(LocalUser*, Channel*, const std::string&, PrefixMode::Set&, const std::string&, bool) { DetachEvent(I_OnUserPreJoin); return MOD_RES_PASSTHRU; } void Module::OnMode(User*, User*, Channel*, const Modes::ChangeList&, ModeParser::ModeProcessFlag) { DetachEvent(I_OnMode); } ModResult Module::OnUserPreInvite(User*, User*, Channel*, time_t) { DetachEvent(I_OnUserPreInvite); return MOD_RES_PASSTHRU; } ModResult Module::OnUserPreMessage(User*, MessageTarget&, MessageDetails&) { DetachEvent(I_OnUserPreMessage); return MOD_RES_PASSTHRU; } |
