/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2013, 2018-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2013, 2018-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2009 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
- * Copyright (C) 2006-2007, 2010 Craig Edwards <brain@inspircd.org>
+ * Copyright (C) 2005-2007, 2010 Craig Edwards <brain@inspircd.org>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public
class ModuleHostChange : public Module
{
private:
- std::bitset<UCHAR_MAX> hostmap;
+ std::bitset<UCHAR_MAX + 1> hostmap;
HostRules hostrules;
std::string CleanName(const std::string& name)
insp::flat_set<int> ports;
const std::string portlist = tag->getString("ports");
- if (!ports.empty())
+ if (!portlist.empty())
{
irc::portparser portrange(portlist, false);
while (int port = portrange.GetToken())
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Provides rule-based masking of user hostnames", VF_VENDOR);
+ return Version("Allows the server administrator to define custom rules for applying hostnames to users.", VF_VENDOR);
}
void OnUserConnect(LocalUser* user) CXX11_OVERRIDE