CommandTest cmd;
public:
ModuleTest() : cmd(this)
+ {
+ }
+
+ void init()
{
if (!strstr(ServerInstance->Config->ServerName.c_str(), ".test"))
throw ModuleException("Don't load modules without reading their descriptions!");
- ServerInstance->AddCommand(&cmd);
+ ServerInstance->Modules->AddService(cmd);
}
Version GetVersion()