summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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];