mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
db7a49b071
commit
98c270f305
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user