X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_tline.cpp;h=cf5814fd185eae0f21de96df4e6273c9d5036702;hb=357d190074ee58809b31ea0c08543566168bddf6;hp=aca95c0a1439168d91c1160e7115a936fd2a81d8;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index aca95c0a1..cf5814fd1 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -20,8 +20,6 @@ #include "inspircd.h" -/* $ModDesc: Provides /tline command used to test who a mask matches */ - /** Handle /TLINE */ class CommandTline : public Command @@ -49,7 +47,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++; @@ -72,20 +70,13 @@ class ModuleTLine : public Module public: ModuleTLine() : cmd(this) - { - ServerInstance->AddCommand(&cmd); - } - - - virtual ~ModuleTLine() { } - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides /tline command used to test who a mask matches", VF_VENDOR); } }; MODULE_INIT(ModuleTLine) -