diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-11 22:15:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-11 22:15:58 +0000 |
commit | 96de3c22e822d4595140ed84dcf398336c2b0b33 (patch) | |
tree | d03136236cd7dcf8df1ee9f24bc51b7652d9f2ea | |
parent | 23feae957d2f62d63f42ee6bb67af0d7c2c2db8d (diff) |
Check is off by one, this wont break anything but will cut a character off the set ident
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8149 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_chgident.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index ee6f6e531..272bef31f 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -43,7 +43,7 @@ class cmd_chgident : public command_t return CMD_FAILURE; } - if (strlen(parameters[1]) > IDENTMAX) + if (strlen(parameters[1]) > IDENTMAX - 1) { user->WriteServ("NOTICE %s :*** CHGIDENT: Ident is too long", user->nick); return CMD_FAILURE; |