summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-26 22:39:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-26 22:39:20 +0000
commita038282348588f716d31128f68b8e06d2e2aa99d (patch)
tree000fb381d3cfba0539b8d63fe1a3195454256c79
parenta306830516d6eed2aa3e52b584d628b9d67579ea (diff)
Fixed max channel length
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1532 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index dc6d17304..8b2c12ab6 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -516,9 +516,9 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
// we MUST declare this wherever we use FOREACH_RESULT
int MOD_RESULT = 0;
- if (strlen(cname) > CHANMAX-1)
+ if (strlen(cname) > CHANMAX)
{
- cname[CHANMAX-1] = '\0';
+ cname[CHANMAX] = '\0';
}
log(DEBUG,"add_channel: %s %s",user->nick,cname);