From ee6208dc8f5bb806eca36e230ca5bbb6d5a45f60 Mon Sep 17 00:00:00 2001 From: special Date: Tue, 26 Jun 2007 06:15:14 +0000 Subject: Added checks for empty ident/host/gecos in the chg* and set* commands. Patch by Stskeeps git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7412 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_setident.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_setident.cpp') diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp index 4bd19fd7a..a98592299 100644 --- a/src/modules/m_setident.cpp +++ b/src/modules/m_setident.cpp @@ -39,6 +39,11 @@ class cmd_setident : public command_t user->WriteServ("NOTICE %s :*** Invalid characters in ident", user->nick); return CMD_FAILURE; } + if (len == 0) + { + user->WriteServ("NOTICE %s :*** SETIDENT: Ident too short", user->nick); + return CMD_FAILURE; + } if (len > IDENTMAX) { user->WriteServ("NOTICE %s :*** Ident is too long", user->nick); -- cgit v1.3.1-10-gc9f91