}
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);
}
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
+ }
virtual ~ModuleTLine()
{