summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-12-09 18:06:21 +0100
committerattilamolnar <attilamolnar@hush.com>2012-12-09 18:12:09 +0100
commit71d53e4883cdb83b50f43cd934ac9b4cd2b95383 (patch)
tree6097a440668bcceff9a2ae55b70ca93e41b0d2bd /src/helperfuncs.cpp
parente3efb6a0f69203929d9042f9a7b14ba81cf71ddb (diff)
Remove ServerLimits::Finalise(), it's completely wrong
Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 668cb95ec..5a8f55f11 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -339,8 +339,8 @@ bool IsNickHandler::Call(const char* n, size_t max)
return false;
}
- /* too long? or not -- pointer arithmetic rocks */
- return (p < max);
+ /* too long? or not */
+ return (p <= max);
}
/* return true for good ident, false else */