summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-06 17:10:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-06 17:10:36 +0000
commit7ab25fcf47e0ec9c898c7ca9a52071d883127c6e (patch)
tree0c389e1d4aa1b5f676c72b242e9f120975c2bb19
parenta9f8076ae8a06da0598fa4218f9b3d7c346745ac (diff)
Fix for bug #186 reported by peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6234 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp6
1 files changed, 6 insertions, 0 deletions
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];