diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-10 20:41:12 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-10 20:41:12 +0000 |
commit | 537624cb910dfb4ff94d5668d2be972b89cccf73 (patch) | |
tree | a59a07eeb32ba0cead6b59bac00b73ca1dcc66e7 /src | |
parent | 63041954b1cfda4aaf1e89d4b16fb6d1411caa3e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chghost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |