summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_set.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-12 12:22:57 +0000
committerSadie Powell <sadie@witchery.services>2024-03-12 12:24:02 +0000
commit06add0e5fc1b83b43014e731cb94229ab2be66f6 (patch)
tree16e08617a2e81a6bc8f44ab513e056a792bb07c2 /modules/hostserv/hs_set.cpp
parent63d682314b7eb3f6e25ecf4ba81dc3bb17270f0e (diff)
Simplify limit extraction code.
Diffstat (limited to 'modules/hostserv/hs_set.cpp')
-rw-r--r--modules/hostserv/hs_set.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/hostserv/hs_set.cpp b/modules/hostserv/hs_set.cpp
index 261e1e51f..16e4cebf9 100644
--- a/modules/hostserv/hs_set.cpp
+++ b/modules/hostserv/hs_set.cpp
@@ -71,9 +71,9 @@ public:
}
}
- if (host.length() > IRCD->GetMaxHost())
+ if (host.length() > IRCD->MaxHost)
{
- source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost());
+ source.Reply(HOST_SET_TOOLONG, IRCD->MaxHost);
return;
}
@@ -174,9 +174,9 @@ public:
}
}
- if (host.length() > IRCD->GetMaxHost())
+ if (host.length() > IRCD->MaxHost)
{
- source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost());
+ source.Reply(HOST_SET_TOOLONG, IRCD->MaxHost);
return;
}