From 71d53e4883cdb83b50f43cd934ac9b4cd2b95383 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 9 Dec 2012 18:06:21 +0100 Subject: Remove ServerLimits::Finalise(), it's completely wrong Truncate +1 long idents in User::ChangeIdent() --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') 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(); -- cgit v1.2.3