I guess it makes sense never to let the gecos be parsed as a mode param, even in error, in case it does something stupid

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10365 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-08-31 13:12:23 +00:00
parent db7a49b071
commit 98c270f305

View File

@ -119,7 +119,7 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque<std::string> &pa
if (mh)
{
if (mh->GetNumParams(true) && (paramptr < params.size()))
if (mh->GetNumParams(true) && (paramptr < params.size() - 1))
mh->OnModeChange(_new, _new, NULL, params[paramptr++], true);
else
mh->OnModeChange(_new, _new, NULL, empty, true);