X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_antibottler.cpp;h=9c7d75ea26dd971e089d645fb06775a366473374;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=3c0f4e67b711e5097ce6433b4d71aee3600c8ed3;hpb=b99156d6d6886783a777d0801d519116502d3cd9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index 3c0f4e67b..9c7d75ea2 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -23,20 +23,17 @@ using namespace std; class ModuleAntiBottler : public Module { - private: - - Server *Srv; public: - ModuleAntiBottler(Server* Me) + ModuleAntiBottler(InspIRCd* Me) : Module::Module(Me) { - Srv = Me; + } - void Implements(char* List) - { - List[I_OnServerRaw] = 1; - } + void Implements(char* List) + { + List[I_OnServerRaw] = 1; + } virtual ~ModuleAntiBottler() @@ -72,11 +69,6 @@ class ModuleAntiBottler : public Module if (!(data) || !(*data)) return; - /* - * slight efficiency fix: strtok() just returns NULL if it has no more - * tokens to return. Plus strlen's here really could have been replaced - * with above pointer voodoo :-). --w00t - */ strtok(data," "); char *ident = strtok(NULL," "); char *local = strtok(NULL," "); @@ -115,7 +107,7 @@ class ModuleAntiBottlerFactory : public ModuleFactory { } - virtual Module * CreateModule(Server* Me) + virtual Module * CreateModule(InspIRCd* Me) { return new ModuleAntiBottler(Me); }