diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:57:14 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:57:14 +0200 |
commit | 6193243e4b9234ba663bb9f0378490ae0e972826 (patch) | |
tree | dd6fc6157fee51100effe4b5dc7f2b73dbf57c67 /src/modules/m_spanningtree/main.cpp | |
parent | 5b1ee304b5e1d71c71eec9ebf8f40758dfce5c1e (diff) |
m_spanningtree Change allocation of the specialized ProtocolInterface to be physically part of ModuleSpanningTree
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 45f219286..8f0586923 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -33,7 +33,6 @@ #include "link.h" #include "treesocket.h" #include "commands.h" -#include "protocolinterface.h" ModuleSpanningTree::ModuleSpanningTree() : rconnect(this), rsquit(this), map(this) @@ -88,7 +87,7 @@ void ModuleSpanningTree::init() commands = new SpanningTreeCommands(this); delete ServerInstance->PI; - ServerInstance->PI = new SpanningTreeProtocolInterface; + ServerInstance->PI = &protocolinterface; delete ServerInstance->FakeClient->server; SetLocalUsersServer(Utils->TreeRoot); @@ -759,7 +758,6 @@ CullResult ModuleSpanningTree::cull() ModuleSpanningTree::~ModuleSpanningTree() { - delete ServerInstance->PI; ServerInstance->PI = new ProtocolInterface; Server* newsrv = new Server(ServerInstance->Config->ServerName, ServerInstance->Config->ServerDesc); |