diff options
| author | 2026-05-30 13:05:25 +0100 | |
|---|---|---|
| committer | 2026-05-30 13:05:25 +0100 | |
| commit | c155114a8d4f62b83f3bb5b3a482b2c48b8a1073 (patch) | |
| tree | 343ee6776c16e43b269d873d5bb4982904e45897 /include/modules | |
| parent | Improve <database> tag formatting in the example configs. (diff) | |
Allow omitting an extban character by default.
Character extbans are deprecated anyway and this makes it easier
for modules to opt-out of providing one.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/extban.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules/extban.h b/include/modules/extban.h index cbaf76e06..05c96c689 100644 --- a/include/modules/extban.h +++ b/include/modules/extban.h @@ -212,7 +212,7 @@ protected: * @param xbname The name used in bans to signify this extban. * @param xbletter The character used in bans to signify this extban. */ - Base(Module* mod, const std::string& xbname, ExtBan::Letter xbletter) + Base(Module* mod, const std::string& xbname, ExtBan::Letter xbletter = '\0') : ServiceProvider(mod, xbname, SERVICE_CUSTOM) , letter(ServerInstance->Config->ConfValue("extbans")->getCharacter(xbname, xbletter, true)) , manager(mod, "extbanmanager") @@ -299,7 +299,7 @@ protected: * @param xbname The name used in bans to signify this extban. * @param xbletter The character used in bans to signify this extban. */ - ActingBase(Module* mod, const std::string& xbname, ExtBan::Letter xbletter) + ActingBase(Module* mod, const std::string& xbname, ExtBan::Letter xbletter = '\0') : Base(mod, xbname, xbletter) { } @@ -345,7 +345,7 @@ public: * @param xbname The name used in bans to signify this extban. * @param xbletter The character used in bans to signify this extban. */ - Acting(Module* mod, const std::string& xbname, ExtBan::Letter xbletter) + Acting(Module* mod, const std::string& xbname, ExtBan::Letter xbletter = '\0') : ActingBase(mod, xbname, xbletter) { } @@ -375,7 +375,7 @@ protected: * @param xbname The name used in bans to signify this extban. * @param xbletter The character used in bans to signify this extban. */ - MatchingBase(Module* mod, const std::string& xbname, ExtBan::Letter xbletter) + MatchingBase(Module* mod, const std::string& xbname, ExtBan::Letter xbletter = '\0') : Base(mod, xbname, xbletter) { } |
