diff options
Diffstat (limited to 'modules/hostserv/hs_set.cpp')
-rw-r--r-- | modules/hostserv/hs_set.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/hostserv/hs_set.cpp b/modules/hostserv/hs_set.cpp index e35f4d3b9..f923057c2 100644 --- a/modules/hostserv/hs_set.cpp +++ b/modules/hostserv/hs_set.cpp @@ -71,9 +71,9 @@ public: } } - if (host.length() > Config->GetBlock("networkinfo")->Get<unsigned>("hostlen")) + if (host.length() > IRCD->GetMaxHost()) { - source.Reply(HOST_SET_TOOLONG, Config->GetBlock("networkinfo")->Get<unsigned>("hostlen")); + source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost()); return; } @@ -177,9 +177,9 @@ public: } } - if (host.length() > Config->GetBlock("networkinfo")->Get<unsigned>("hostlen")) + if (host.length() > IRCD->GetMaxHost()) { - source.Reply(HOST_SET_TOOLONG, Config->GetBlock("networkinfo")->Get<unsigned>("hostlen")); + source.Reply(HOST_SET_TOOLONG, IRCD->GetMaxHost()); return; } |