]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.cpp
Add an event provider class for the event/messagetag event.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.cpp
index 3e992f39f90f043355c76437e2e778d74df10dd8..8a9bcfa662c77982d0f45bd557c7f6b4cdd4c02c 100644 (file)
@@ -49,8 +49,9 @@ ModuleSpanningTree::ModuleSpanningTree()
        , messageeventprov(this, "event/server-message")
        , synceventprov(this, "event/server-sync")
        , sslapi(this)
+       , servicetag(this)
        , DNS(this, "DNS")
-       , tagevprov(this, "event/messagetag")
+       , tagevprov(this)
        , loopCall(false)
 {
 }
@@ -793,6 +794,13 @@ void ModuleSpanningTree::OnMode(User* source, User* u, Channel* c, const Modes::
        }
 }
 
+void ModuleSpanningTree::OnShutdown(const std::string& reason)
+{
+       const TreeServer::ChildServers& children = Utils->TreeRoot->GetChildren();
+       while (!children.empty())
+               children.front()->SQuit(reason, true);
+}
+
 CullResult ModuleSpanningTree::cull()
 {
        if (Utils)