diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-20 16:04:21 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-20 16:04:21 +0200 |
commit | 3323226c38c959392e61f406ec62f9d5f24fce15 (patch) | |
tree | a19fe4f427be15a5eb85aee22dbba6fe3ee185c8 /src/modules | |
parent | 7b0f3072986ae8e6d356afd18e17e90deeb204bd (diff) |
Increment serverstats::Collisions when a collision is handled, not when a module denies a nick change
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/nickcollide.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/nickcollide.cpp b/src/modules/m_spanningtree/nickcollide.cpp index 62e43a0b1..30be98fb5 100644 --- a/src/modules/m_spanningtree/nickcollide.cpp +++ b/src/modules/m_spanningtree/nickcollide.cpp @@ -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. |