aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-13 08:53:37 -0400
committerGravatar Daniel De Graaf2010-08-13 08:53:37 -0400
commite0ffef80bd5590e729e1d9f3c8574104f267ca92 (patch)
tree983f53757097c70da0bd0b5e71c415eb95bffc1f /src/users.cpp
parentQuick fix for cgiirc notify bug (diff)
downloadinspircd++-e0ffef80bd5590e729e1d9f3c8574104f267ca92.tar.gz
inspircd++-e0ffef80bd5590e729e1d9f3c8574104f267ca92.tar.bz2
inspircd++-e0ffef80bd5590e729e1d9f3c8574104f267ca92.zip
Fix the stupid untested off-by-two ident length check
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 1b7984a99..c84cba369 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1724,7 +1724,7 @@ bool User::ChangeIdent(const char* newident)
if (this->ServerInstance->Config->CycleHosts && !MOD_RESULT)
this->WriteCommonExcept("%s","QUIT :Changing ident");
- this->ident.assign(newident, 0, ServerInstance->Config->Limits.IdentMax + 1);
+ this->ident.assign(newident, 0, ServerInstance->Config->Limits.IdentMax - 1);
this->InvalidateCache();