diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-24 14:54:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-24 14:54:42 +0000 |
commit | 4f50b9dfb1ca58cdceaad7578b48aa1ced186008 (patch) | |
tree | 6020dcdfca9764c2731a2ead5f92f2df802bc176 /src/modules/m_spanningtree | |
parent | da1fcf32adfd81432e7685d988b4a0a671859c64 (diff) |
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
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.h | 2 |
2 files changed, 7 insertions, 1 deletions
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 @@ -36,8 +36,12 @@ 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(); |