X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fbase.h;h=86aa2769fc3112956b3666a24708637c1720e8dc;hb=cada37c7b51c0f1bee8117caa0123412b2e48081;hp=c6d361576f8772a663c18e9d079f2708806ee1ac;hpb=1031f333332cf1b09db4fd632f141143ee637c34;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/base.h b/include/base.h index c6d361576..86aa2769f 100644 --- a/include/base.h +++ b/include/base.h @@ -249,8 +249,11 @@ class CoreExport ServiceProvider : public classbase const std::string name; /** Type of service (must match object type) */ const ServiceType service; - ServiceProvider(Module* Creator, const std::string& Name, ServiceType Type) - : creator(Creator), name(Name), service(Type) {} + ServiceProvider(Module* Creator, const std::string& Name, ServiceType Type); virtual ~ServiceProvider(); + + /** If called, this ServiceProvider won't be registered automatically + */ + void DisableAutoRegister(); };