mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
Squash a few warnings
This commit is contained in:
parent
b2935d8bd4
commit
c3293506a9
@ -308,7 +308,9 @@ class ModuleWhoWas : public Module
|
||||
{
|
||||
CommandWhowas cmd;
|
||||
public:
|
||||
ModuleWhoWas() : cmd(this)
|
||||
ModuleWhoWas() : cmd(this) {}
|
||||
|
||||
void init()
|
||||
{
|
||||
ServerInstance->AddCommand(&cmd);
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -257,7 +257,9 @@ class ModuleMD5 : public Module
|
||||
{
|
||||
MD5Provider md5;
|
||||
public:
|
||||
ModuleMD5() : md5(this)
|
||||
ModuleMD5() : md5(this) {}
|
||||
|
||||
void init()
|
||||
{
|
||||
ServerInstance->Modules->AddService(md5);
|
||||
}
|
||||
|
@ -449,7 +449,9 @@ class ModuleRIPEMD160 : public Module
|
||||
{
|
||||
public:
|
||||
RIProv mr;
|
||||
ModuleRIPEMD160() : mr(this)
|
||||
ModuleRIPEMD160() : mr(this) {}
|
||||
|
||||
void init()
|
||||
{
|
||||
ServerInstance->Modules->AddService(mr);
|
||||
}
|
||||
|
@ -261,7 +261,9 @@ class ModuleSHA256 : public Module
|
||||
{
|
||||
HashSHA256 sha;
|
||||
public:
|
||||
ModuleSHA256() : sha(this)
|
||||
ModuleSHA256() : sha(this) {}
|
||||
|
||||
void init()
|
||||
{
|
||||
ServerInstance->Modules->AddService(sha);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user