// 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
};
std::string suffix;
public:
- HostRule(const std::string& Host, const std::string& Mask, const insp::flat_set<int>& Ports)
+ HostRule(const std::string& Mask, const std::string& Host, const insp::flat_set<int>& Ports)
: action(HCA_SET)
, host(Host)
, mask(Mask)
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))
}
else
{
- throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->getTagLocation());
+ throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->getTagLocation());
}
}