}
else
{
- std::string host = std::string(u->second->ident) + "@" + u->second->GetIPString();
+ std::string host = u->second->ident + "@" + u->second->GetIPString();
if (InspIRCd::MatchCIDR(host, parameters[0]))
{
n_matched++;
ModuleTLine()
: cmd(this)
{
- ServerInstance->AddCommand(&cmd);
}
-
- virtual ~ModuleTLine()
+ void init() CXX11_OVERRIDE
{
+ ServerInstance->Modules->AddService(cmd);
}
- virtual Version GetVersion()
+ Version GetVersion() CXX11_OVERRIDE
{
return Version("Provides /tline command used to test who a mask matches", VF_VENDOR);
}
};
MODULE_INIT(ModuleTLine)
-