summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-26 22:20:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-26 22:20:16 +0000
commitf49f4e3567908b4371f7d17d2c3b0e2adb76534a (patch)
treea6693c319dcb73632781bb0811b23a894f5298ad
parent384fe680ca20ffc18f166eea30f8b7d9a578ad6d (diff)
Changed representation of MAXNICK in isnick() to allow for a non-incremented size
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1530 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure2
-rw-r--r--src/message.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 06ad404dc..42532c167 100755
--- a/configure
+++ b/configure
@@ -235,7 +235,7 @@ while (!$continue) {
print "What is the Maximum length of nicknames?\n";
print "[\033[1;32m$config{NICK_LENGT}\033[0m] -> ";
chomp($var = <STDIN>);
- if ($var eq "") { $var = $config{NICK_LENGT}; } else { $var++; }
+ if ($var eq "") { $var = $config{NICK_LENGT}; }
if ($var =~ /^\d+$/) {
# We don't care what the number is, set it and be on our way.
$config{NICK_LENGT} = $var;
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;
}