summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-02 21:05:56 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-02 21:05:56 +0000
commite2289d4cf4f9a9c587c1956c089bb3a32a48b54d (patch)
tree5cccf646ce53a04204ea98cfca87db0dec436092 /src/modules/m_spanningtree/main.cpp
parent9451b779d7a513c87f48db40e14d245b7f62c844 (diff)
Remove special-case handling of SVSNICK, SVSJOIN, SVSPART; enables intelligent routing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12238 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 0ed9b28ac..4c982356a 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -24,21 +24,24 @@
#include "treeserver.h"
#include "link.h"
#include "treesocket.h"
-#include "rconnect.h"
-#include "rsquit.h"
+#include "commands.h"
#include "protocolinterface.h"
-/* $ModDep: m_spanningtree/cachetimer.h m_spanningtree/resolvers.h m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h m_spanningtree/rconnect.h m_spanningtree/rsquit.h m_spanningtree/protocolinterface.h */
-
ModuleSpanningTree::ModuleSpanningTree()
: max_local(0), max_global(0)
{
Utils = new SpanningTreeUtilities(this);
command_rconnect = new CommandRConnect(this, Utils);
- ServerInstance->AddCommand(command_rconnect);
command_rsquit = new CommandRSQuit(this, Utils);
- ServerInstance->AddCommand(command_rsquit);
+ command_svsjoin = new CommandSVSJoin(this);
+ command_svspart = new CommandSVSPart(this);
+ command_svsnick = new CommandSVSNick(this);
RefreshTimer = new CacheRefreshTimer(Utils);
+ ServerInstance->AddCommand(command_rconnect);
+ ServerInstance->AddCommand(command_rsquit);
+ ServerInstance->AddCommand(command_svsjoin);
+ ServerInstance->AddCommand(command_svspart);
+ ServerInstance->AddCommand(command_svsnick);
ServerInstance->Timers->AddTimer(RefreshTimer);
Implementation eventlist[] =
@@ -953,6 +956,9 @@ ModuleSpanningTree::~ModuleSpanningTree()
delete command_rconnect;
delete command_rsquit;
+ delete command_svsjoin;
+ delete command_svspart;
+ delete command_svsnick;
}
Version ModuleSpanningTree::GetVersion()