From 7ab25fcf47e0ec9c898c7ca9a52071d883127c6e Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 6 Jan 2007 17:10:36 +0000 Subject: Fix for bug #186 reported by peavey git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6234 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 3a4b93ada..4d4e082f9 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1901,7 +1901,13 @@ class TreeSocket : public InspSocket for (std::string::iterator v = params[5].begin(); v != params[5].end(); v++) + { _new->modes[(*v)-65] = 1; + /* For each mode thats set, increase counter */ + ModeHandler* mh = Instance->Modes->FindMode((*v)-65, MODETYPE_USER); + if (mh) + mh->ChangeCount(1); + } /* now we've done with modes processing, put the + back for remote servers */ params[5] = "+" + params[5]; -- cgit v1.2.3