/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2019 Peter Powell <petpow@saberuk.com>
+ * Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services>
*
* 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
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Provides a way to assign users to connect classes by country", VF_VENDOR);
+ return Version("Allows the server administrator to assign users to connect classes by the country they are connecting from.", VF_VENDOR);
}
ModResult OnSetConnectClass(LocalUser* user, ConnectClass* myclass) CXX11_OVERRIDE
// A list of country codes were specified but the user didn't match
// any of them.
+ ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "The %s connect class is not suitable as the origin country (%s) is not any of %s",
+ myclass->GetName().c_str(), code.c_str(), country.c_str());
return MOD_RES_DENY;
}