summaryrefslogtreecommitdiff
path: root/src/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 871f8b125..d188f57f7 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -280,7 +280,7 @@ int isnick(const char* n)
{
return 0;
}
- if (strlen(n) > NICKMAX-1)
+ if (strlen(n) > NICKMAX)
{
return 0;
}