diff options
| author | 2007-10-11 22:17:10 +0000 | |
|---|---|---|
| committer | 2007-10-11 22:17:10 +0000 | |
| commit | 28f729ab77fa74e0750cffe2a5b2b2a503e7ba44 (patch) | |
| tree | 7d65b3a5ea7a2a4a7c4d0d4589239e4107756d34 /src/modules/m_chgident.cpp | |
| parent | SVNMERGE BLOCK: (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/branches/1_1_stable@8150 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chgident.cpp')
| -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 e13d211f4..cb2195784 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -44,7 +44,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; |
