Squash a few warnings

This commit is contained in:
Daniel De Graaf 2010-03-23 09:33:36 -05:00
parent b2935d8bd4
commit c3293506a9
7 changed files with 26 additions and 14 deletions

View File

@ -308,7 +308,9 @@ class ModuleWhoWas : public Module
{
CommandWhowas cmd;
public:
ModuleWhoWas() : cmd(this)
ModuleWhoWas() : cmd(this) {}
void init()
{
ServerInstance->AddCommand(&cmd);
}

View File

@ -38,7 +38,6 @@ class AllModule : public Module
{
Command* c = (*i)(this);
cmds.push_back(c);
ServerInstance->AddCommand(c);
}
}
catch (...)
@ -48,6 +47,12 @@ class AllModule : public Module
}
}
void init()
{
for(std::vector<Command*>::iterator i = cmds.begin(); i != cmds.end(); ++i)
ServerInstance->AddCommand(*i);
}
~AllModule()
{
for(std::vector<Command*>::iterator i = cmds.begin(); i != cmds.end(); ++i)

View File

@ -49,17 +49,14 @@ class Modulealltime : public Module
{
CommandAlltime mycommand;
public:
Modulealltime()
: mycommand(this)
Modulealltime() : mycommand(this) {}
void init()
{
ServerInstance->AddCommand(&mycommand);
ServerInstance->Modules->AddService(mycommand);
}
virtual ~Modulealltime()
{
}
virtual Version GetVersion()
Version GetVersion()
{
return Version("Display timestamps from all servers connected to the network", VF_OPTCOMMON | VF_VENDOR);
}

View File

@ -82,7 +82,9 @@ class ModuleChgHost : public Module
CommandChghost cmd;
char hostmap[256];
public:
ModuleChgHost() : cmd(this, hostmap)
ModuleChgHost() : cmd(this, hostmap) {}
void init()
{
OnRehash(NULL);
ServerInstance->AddCommand(&cmd);

View File

@ -257,7 +257,9 @@ class ModuleMD5 : public Module
{
MD5Provider md5;
public:
ModuleMD5() : md5(this)
ModuleMD5() : md5(this) {}
void init()
{
ServerInstance->Modules->AddService(md5);
}

View File

@ -449,7 +449,9 @@ class ModuleRIPEMD160 : public Module
{
public:
RIProv mr;
ModuleRIPEMD160() : mr(this)
ModuleRIPEMD160() : mr(this) {}
void init()
{
ServerInstance->Modules->AddService(mr);
}

View File

@ -261,7 +261,9 @@ class ModuleSHA256 : public Module
{
HashSHA256 sha;
public:
ModuleSHA256() : sha(this)
ModuleSHA256() : sha(this) {}
void init()
{
ServerInstance->Modules->AddService(sha);
}