mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Avoid allocating in ListExtItem when its obviously not necessary.
This commit is contained in:
parent
87f66dda48
commit
a5f902ec71
@ -311,6 +311,12 @@ public:
|
||||
if (container->extype != this->extype)
|
||||
return;
|
||||
|
||||
if (value.empty())
|
||||
{
|
||||
SimpleExtItem<Container>::Unset(container);
|
||||
return;
|
||||
}
|
||||
|
||||
auto list = new List();
|
||||
irc::spacesepstream stream(value);
|
||||
for (std::string element; stream.GetToken(element); )
|
||||
|
Loading…
x
Reference in New Issue
Block a user