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/modules/m_ident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 93a3d6549..4d66a739e 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -242,7 +242,7 @@ class IdentRequestSocket : public EventHandler /* Truncate the ident at any characters we don't like, skip leading spaces */ for (std::string::const_iterator i = buf.begin()+lastcolon+1; i != buf.end(); ++i) { - if (result.size()+1 == ServerInstance->Config->Limits.IdentMax) + if (result.size() == ServerInstance->Config->Limits.IdentMax) /* Ident is getting too long */ break; -- cgit v1.2.3