]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Apparantly someone can't figure out which index to check. Fixes CHGHOST with blank...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 10 Mar 2009 20:41:12 +0000 (20:41 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 10 Mar 2009 20:41:12 +0000 (20:41 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11196 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_chghost.cpp

index be739ffc63f82c403a4548f6406bbf7138f4e1f9..03347003ab0e25c99fb9b3ae58e058b0279fe9c6 100644 (file)
@@ -41,7 +41,7 @@ class CommandChghost : public Command
                                return CMD_FAILURE;
                        }
                }
-               if (parameters[0].empty())
+               if (parameters[1].empty())
                {
                        user->WriteServ("NOTICE %s :*** CHGHOST: Host must be specified", user->nick.c_str());
                        return CMD_FAILURE;