diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-12 12:22:57 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-12 12:24:02 +0000 |
commit | 06add0e5fc1b83b43014e731cb94229ab2be66f6 (patch) | |
tree | 16e08617a2e81a6bc8f44ab513e056a792bb07c2 /modules/hostserv/hs_request.cpp | |
parent | 63d682314b7eb3f6e25ecf4ba81dc3bb17270f0e (diff) |
Simplify limit extraction code.
Diffstat (limited to 'modules/hostserv/hs_request.cpp')
-rw-r--r-- | modules/hostserv/hs_request.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |