summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 497c577f7..c5c4e2a5b 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1653,9 +1653,12 @@ class TreeSocket : public InspSocket
ourTS = TS;
/* Zap all the privilage modes on our side, if the channel exists here */
- param_list.push_back(channel);
- this->RemoveStatus(Instance->Config->ServerName, param_list);
- chan->age = TS;
+ if (!created)
+ {
+ param_list.push_back(channel);
+ this->RemoveStatus(Instance->Config->ServerName, param_list);
+ chan->age = TS;
+ }
}
/* Put the final parameter of the FJOIN into a tokenstream ready to split it */