X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_hostchange.cpp;h=895e0f04a29ebba0f2a3c615a91bc4c42c71fa96;hb=b4599531f97a9e6207b6bb8d728d7523b6995523;hp=4c9b24140cbb442201d4cdbcfb16f6f465184ff4;hpb=11cc922584b050b3242e1f50b6821e973d42b3f5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index 4c9b24140..895e0f04a 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -34,7 +34,7 @@ class HostRule // Add the user's nickname to their hostname. HCA_ADDNICK, - // Set the user's hostname to the specific value. + // Set the user's hostname to the specific value. HCA_SET }; @@ -76,7 +76,7 @@ class HostRule bool Matches(LocalUser* user) const { - if (!ports.empty() && !ports.count(user->GetServerPort())) + if (!ports.empty() && !ports.count(user->server_sa.port())) return false; if (InspIRCd::MatchCIDR(user->MakeHost(), mask)) @@ -168,7 +168,7 @@ private: } else { - throw ModuleException(action + " is an invalid type, at " + tag->getTagLocation()); + throw ModuleException(action + " is an invalid type, at " + tag->getTagLocation()); } }