diff options
| author | 2025-09-30 21:37:17 +0100 | |
|---|---|---|
| committer | 2025-09-30 21:37:17 +0100 | |
| commit | b018a1866497937f27f7fa87c7d713da2893dedd (patch) | |
| tree | c09aaba8d2fed848e2812f6302ef926cfe75e997 /modules/services.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Fix some misc issues with the services module.
Diffstat (limited to 'modules/services.cpp')
| -rw-r--r-- | modules/services.cpp | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/modules/services.cpp b/modules/services.cpp index b93afc702..dc8aacacc 100644 --- a/modules/services.cpp +++ b/modules/services.cpp @@ -26,6 +26,18 @@ #include "timeutils.h" #include "xline.h" +enum +{ + // From UnrealIRCd. + ERR_KILLDENY = 485, + + // From Charybdis. + ERR_MLOCKRESTRICTED = 742, + + // InspIRCd-specific. + ERR_TOPICLOCK = 744, +}; + class ServicesAccountProvider final : public Account::ProviderAPIBase , public ServerProtocol::LinkEventListener @@ -81,31 +93,17 @@ public: { if (irc::equals(target, server.servername)) { - ServerInstance->Logs.Debug(MODNAME, "Changed the services server to {}.", - server.servername); + ServerInstance->Logs.Debug(MODNAME, "Changed the services server to {}.", server.servername); SetAvailable(true); return; } } - ServerInstance->Logs.Debug(MODNAME, "The services server ({}) is currently unavailable.", - target.c_str()); + ServerInstance->Logs.Debug(MODNAME, "The services server ({}) is currently unavailable.", target); SetAvailable(false); } }; -enum -{ - // From UnrealIRCd. - ERR_KILLDENY = 485, - - // From Charybdis. - ERR_MLOCKRESTRICTED = 742, - - // InspIRCd-specific. - ERR_TOPICLOCK = 744, -}; - class RegisteredChannel final : public SimpleChannelMode { |
