aboutsummaryrefslogtreecommitdiffstats
path: root/modules/services.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-09-30 21:37:17 +0100
committerGravatar Sadie Powell2025-09-30 21:37:17 +0100
commitb018a1866497937f27f7fa87c7d713da2893dedd (patch)
treec09aaba8d2fed848e2812f6302ef926cfe75e997 /modules/services.cpp
parentMerge branch 'insp4' into master. (diff)
Fix some misc issues with the services module.
Diffstat (limited to 'modules/services.cpp')
-rw-r--r--modules/services.cpp30
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
{