aboutsummaryrefslogtreecommitdiffstats
path: root/modules/services.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-15 12:52:55 +0000
committerGravatar Sadie Powell2026-03-15 17:14:40 +0000
commit4c8dd6a6758019b253bf584f62864870de8de999 (patch)
treed7f0c6b562c3b589ce0f3c3d8c6765bd0b7aaebe /modules/services.cpp
parentSilence a warning in the string hashing code (for real this time). (diff)
Change ServerList to return a list of Server* not a duplicate class.
Diffstat (limited to 'modules/services.cpp')
-rw-r--r--modules/services.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/services.cpp b/modules/services.cpp
index 5eaa68f22..9e465372d 100644
--- a/modules/services.cpp
+++ b/modules/services.cpp
@@ -92,9 +92,9 @@ public:
ServerInstance->PI->GetServerList(servers);
for (const auto& server : servers)
{
- if (insp::casemapped_equals(target, server.servername))
+ if (insp::casemapped_equals(target, server->GetName()))
{
- ServerInstance->Logs.Debug(MODNAME, "Changed the services server to {}.", server.servername);
+ ServerInstance->Logs.Debug(MODNAME, "Changed the services server to {}.", server->GetName());
SetAvailable(true);
return;
}