summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-06 12:19:06 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-06 12:19:06 +0100
commit619c5eabb1834f2ec9e3b723243b679a62f0acd3 (patch)
treec1ac2ce4b0e7736f4c3426ba009fa915c87479b8 /src/modules
parentd1bb97f3fb3fea1bf2de6a1eacaa2cdd6baacc07 (diff)
m_spanningtree Change allocation of ModuleSpanningTree::commands to be physically part of the object containing it
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/main.cpp4
-rw-r--r--src/modules/m_spanningtree/main.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 4e45b4fe8..726376844 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -37,7 +37,7 @@
ModuleSpanningTree::ModuleSpanningTree()
: rconnect(this), rsquit(this), map(this)
- , commands(NULL)
+ , commands(this)
, currmembid(0)
, eventprov(this, "event/spanningtree")
, DNS(this, "DNS")
@@ -89,7 +89,6 @@ void ModuleSpanningTree::init()
Utils = new SpanningTreeUtilities(this);
Utils->TreeRoot = new TreeServer;
- commands = new SpanningTreeCommands(this);
ServerInstance->PI = &protocolinterface;
@@ -736,7 +735,6 @@ ModuleSpanningTree::~ModuleSpanningTree()
SetLocalUsersServer(newsrv);
delete Utils;
- delete commands;
}
Version ModuleSpanningTree::GetVersion()
diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h
index d29609a35..3e02ce93f 100644
--- a/src/modules/m_spanningtree/main.h
+++ b/src/modules/m_spanningtree/main.h
@@ -44,7 +44,6 @@ const long MinCompatProtocol = 1202;
/** Forward declarations
*/
-class SpanningTreeCommands;
class SpanningTreeUtilities;
class CacheRefreshTimer;
class TreeServer;
@@ -63,7 +62,7 @@ class ModuleSpanningTree : public Module
/** Server to server only commands, not registered in the core
*/
- SpanningTreeCommands* commands;
+ SpanningTreeCommands commands;
/** Next membership id assigned when a local user joins a channel
*/