summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-12-09 18:06:21 +0100
committerattilamolnar <attilamolnar@hush.com>2012-12-09 18:12:09 +0100
commit71d53e4883cdb83b50f43cd934ac9b4cd2b95383 (patch)
tree6097a440668bcceff9a2ae55b70ca93e41b0d2bd /src/users.cpp
parente3efb6a0f69203929d9042f9a7b14ba81cf71ddb (diff)
Remove ServerLimits::Finalise(), it's completely wrong
Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index e55c7e099..30df3c153 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1483,7 +1483,7 @@ bool User::ChangeIdent(const char* newident)
std::string quitstr = ":" + GetFullHost() + " QUIT :Changing ident";
- this->ident.assign(newident, 0, ServerInstance->Config->Limits.IdentMax + 1);
+ this->ident.assign(newident, 0, ServerInstance->Config->Limits.IdentMax);
this->InvalidateCache();