From 60245f0447e7de20f29f96dc1ec096300ba5f6ee Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 14 Jun 2014 15:07:19 +0200 Subject: m_spanningtree Initialize boolean member variables in the constructor of the module --- src/modules/m_spanningtree/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 5f07cb065..5bf4583a4 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -39,6 +39,8 @@ ModuleSpanningTree::ModuleSpanningTree() , commands(NULL) , currmembid(0) , DNS(this, "DNS") + , loopCall(false) + , SplitInProgress(false) { } @@ -90,9 +92,6 @@ void ModuleSpanningTree::init() delete ServerInstance->FakeClient->server; SetLocalUsersServer(Utils->TreeRoot); - - loopCall = false; - SplitInProgress = false; } void ModuleSpanningTree::ShowLinks(TreeServer* Current, User* user, int hops) -- cgit v1.2.3