From b018a1866497937f27f7fa87c7d713da2893dedd Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Sep 2025 21:37:17 +0100 Subject: Fix some misc issues with the services module. --- modules/services.cpp | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'modules/services.cpp') 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 { -- cgit v1.3.1-10-gc9f91