summaryrefslogtreecommitdiffstats
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-13 16:56:24 -0400
committerGravatar Daniel De Graaf2010-08-13 16:56:24 -0400
commit7cfd4039ca3a835abfa88dfd595187fb11aa6901 (patch)
tree360b659045ea6a9b5b6d5227a7ff4da0e5ab4c44 /src/modules/m_ident.cpp
parentRemove Limits.Finalise(), doing this is completely incorrect (diff)
downloadinspircd++-7cfd4039ca3a835abfa88dfd595187fb11aa6901.tar.gz
inspircd++-7cfd4039ca3a835abfa88dfd595187fb11aa6901.tar.bz2
inspircd++-7cfd4039ca3a835abfa88dfd595187fb11aa6901.zip
Remove duplicated settings now solely defined by the <connect> class
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp3
1 files changed, 1 insertions, 2 deletions
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;