summaryrefslogtreecommitdiff
path: root/src/modules/m_chgname.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-26 06:15:14 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-26 06:15:14 +0000
commitee6208dc8f5bb806eca36e230ca5bbb6d5a45f60 (patch)
tree8302f402166ca2bbb7ae724042c129d1fcaa75bf /src/modules/m_chgname.cpp
parent97590f92393a62af0847728132970c38e334b687 (diff)
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
Diffstat (limited to 'src/modules/m_chgname.cpp')
-rw-r--r--src/modules/m_chgname.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp
index 2e1171526..f3ea9cc25 100644
--- a/src/modules/m_chgname.cpp
+++ b/src/modules/m_chgname.cpp
@@ -37,7 +37,11 @@ class cmd_chgname : public command_t
user->WriteServ("401 %s %s :No such nick/channel", user->nick, parameters[0]);
return CMD_FAILURE;
}
-
+ if (!*parameters[1])
+ {
+ user->WriteServ("NOTICE %s :*** GECOS is too short", user->nick);
+ return CMD_FAILURE;
+ }
if (IS_LOCAL(dest))
{
dest->ChangeName(parameters[1]);