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 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/main.cpp') 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); -- cgit v1.3.1-10-gc9f91