Reject parameters that begin with a colon in Channel::SetDefaultModes()

This commit is contained in:
Attila Molnar 2014-09-26 21:07:24 +02:00
parent aa5a97bfd6
commit 4343bbb67a

View File

@ -202,7 +202,12 @@ void Channel::SetDefaultModes()
if (mode)
{
if (mode->GetNumParams(true))
{
list.GetToken(parameter);
// If the parameter begins with a ':' then it's invalid
if (parameter.c_str()[0] == ':')
continue;
}
else
parameter.clear();