From: w00t Date: Tue, 10 Mar 2009 20:41:12 +0000 (+0000) Subject: Apparantly someone can't figure out which index to check. Fixes CHGHOST with blank... X-Git-Tag: v2.0.23~2023 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=537624cb910dfb4ff94d5668d2be972b89cccf73;p=user%2Fhenk%2Fcode%2Finspircd.git Apparantly someone can't figure out which index to check. Fixes CHGHOST with blank hosts, thanks Taros. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11196 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index be739ffc6..03347003a 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -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;