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 4f8e25bee..584d5a070 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -266,7 +266,7 @@ int isnick(const char* n)
{
return 0;
}
- if (strlen(n) > NICKMAX)
+ if (strlen(n) > NICKMAX-1)
{
return 0;
}