From 06add0e5fc1b83b43014e731cb94229ab2be66f6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Mar 2024 12:22:57 +0000 Subject: Simplify limit extraction code. --- modules/hostserv/hs_request.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/hostserv/hs_request.cpp') diff --git a/modules/hostserv/hs_request.cpp b/modules/hostserv/hs_request.cpp index d7bc6bc34..b53cd6fa9 100644 --- a/modules/hostserv/hs_request.cpp +++ b/modules/hostserv/hs_request.cpp @@ -122,9 +122,9 @@ public: if (!user.empty()) { - if (user.length() > IRCD->GetMaxUser()) + if (user.length() > IRCD->MaxUser) { - source.Reply(HOST_SET_IDENTTOOLONG, IRCD->GetMaxUser()); + source.Reply(HOST_SET_IDENTTOOLONG, IRCD->MaxUser); return; } else if (!IRCD->CanSetVIdent) @@ -142,9 +142,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; } -- cgit