mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Reject parameters that begin with a colon in Channel::SetDefaultModes()
This commit is contained in:
parent
aa5a97bfd6
commit
4343bbb67a
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user