From 4f50b9dfb1ca58cdceaad7578b48aa1ced186008 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 24 Feb 2008 14:54:42 +0000 Subject: spanningtree now correctly uses OnReadConfig, so its config is AVAILABLE when it comes to read it. No more bitching about missing config tags. This MIGHT fix the other problem listed in bug #461 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9018 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 6 +++++- src/modules/m_spanningtree/main.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index f72974381..aea4aacee 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -35,9 +35,13 @@ ModuleSpanningTree::ModuleSpanningTree(InspIRCd* Me) : Module(Me), max_local(0), max_global(0) +{ +} + +void ModuleSpanningTree::OnReadConfig(ServerConfig* c, ConfigReader* r) { ServerInstance->Modules->UseInterface("BufferedSocketHook"); - Utils = new SpanningTreeUtilities(Me, this); + Utils = new SpanningTreeUtilities(ServerInstance, this); command_rconnect = new cmd_rconnect(ServerInstance, this, Utils); ServerInstance->AddCommand(command_rconnect); command_rsquit = new cmd_rsquit(ServerInstance, this, Utils); diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h index 4002ad61e..6f40c6cb0 100644 --- a/src/modules/m_spanningtree/main.h +++ b/src/modules/m_spanningtree/main.h @@ -60,6 +60,8 @@ class ModuleSpanningTree : public Module */ void ShowLinks(TreeServer* Current, User* user, int hops); + void OnReadConfig(ServerConfig* c, ConfigReader* r); + /** Counts local servers */ int CountLocalServs(); -- cgit v1.2.3