X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_tline.cpp;h=b4e7e5a995941e829ef33ca38969504f84b46b0e;hb=a785f350fd584d87f3b84bbaff569ecb59c29f04;hp=aca95c0a1439168d91c1160e7115a936fd2a81d8;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index aca95c0a1..b4e7e5a99 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -49,7 +49,7 @@ class CommandTline : public Command } 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++; @@ -73,9 +73,12 @@ class ModuleTLine : public Module ModuleTLine() : cmd(this) { - ServerInstance->AddCommand(&cmd); } + void init() + { + ServerInstance->Modules->AddService(cmd); + } virtual ~ModuleTLine() {