]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/nickcollide.cpp
Increment serverstats::Collisions when a collision is handled, not when a module...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / nickcollide.cpp
index edc1ac6ff0a1dcddcf6208c673da75354656d36a..30be98fb5b89317448c856fae1a6f6a8201ae461 100644 (file)
@@ -33,6 +33,9 @@
  */
 int SpanningTreeUtilities::DoCollision(User* u, TreeServer* server, time_t remotets, const std::string& remoteident, const std::string& remoteip, const std::string& remoteuid)
 {
+       // At this point we're sure that a collision happened, increment the counter regardless of who wins
+       ServerInstance->stats.Collisions++;
+
        /*
         * Under old protocol rules, we would have had to kill both clients.
         * Really, this sucks.
@@ -139,4 +142,3 @@ int SpanningTreeUtilities::DoCollision(User* u, TreeServer* server, time_t remot
 
        return 3;
 }
-