From 7cfd4039ca3a835abfa88dfd595187fb11aa6901 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 13 Aug 2010 16:56:24 -0400 Subject: Remove duplicated settings now solely defined by the class --- src/modules/m_ident.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 6c1148cfc..a93c7ed22 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -229,7 +229,7 @@ class IdentRequestSocket : public EventHandler /* Truncate the ident at any characters we don't like, skip leading spaces */ size_t k = 0; - for (const char *j = token.c_str(); *j && (k < ServerInstance->Config->Limits.IdentMax + 1); j++) + for (const char *j = token.c_str(); *j && (k++ < ServerInstance->Config->Limits.IdentMax); j++) { if (*j == ' ') continue; @@ -244,7 +244,6 @@ class IdentRequestSocket : public EventHandler break; } - /* Re-check with IsIdent, in case that changes and this doesn't (paranoia!) */ if (!ident.empty() && ServerInstance->IsIdent(ident.c_str())) { result = ident; -- cgit v1.3.1-10-gc9f91