summaryrefslogtreecommitdiff
path: root/src/modules/m_sethost.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-01 21:56:13 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-01 21:56:13 +0200
commit26e7bb0b9a17a595d9935a1cae41b44504ad213e (patch)
tree904734f67485d62de90c35abbb522ad0e84cb862 /src/modules/m_sethost.cpp
parent8584cc23f4bd6515acef65fc82a15dc1f53127b2 (diff)
Whitespace and empty destructor removal, minor coding style changes
Diffstat (limited to 'src/modules/m_sethost.cpp')
-rw-r--r--src/modules/m_sethost.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp
index 2ef0c0548..f3c7786e2 100644
--- a/src/modules/m_sethost.cpp
+++ b/src/modules/m_sethost.cpp
@@ -27,8 +27,8 @@
*/
class CommandSethost : public Command
{
- private:
char* hostmap;
+
public:
CommandSethost(Module* Creator, char* hmap) : Command(Creator,"SETHOST", 1), hostmap(hmap)
{
@@ -70,6 +70,7 @@ class ModuleSetHost : public Module
{
CommandSethost cmd;
char hostmap[256];
+
public:
ModuleSetHost()
: cmd(this, hostmap)
@@ -93,15 +94,10 @@ class ModuleSetHost : public Module
hostmap[(unsigned char)*n] = 1;
}
- virtual ~ModuleSetHost()
- {
- }
-
virtual Version GetVersion()
{
return Version("Provides support for the SETHOST command", VF_VENDOR);
}
-
};
MODULE_INIT(ModuleSetHost)