1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 03:23:13 +02:00

Add Data::Load, make the istream operator private.

This commit is contained in:
Sadie Powell
2026-03-26 14:26:11 +00:00
parent 5006993d0a
commit 85a32077b5
37 changed files with 345 additions and 482 deletions
+3 -3
View File
@@ -1139,10 +1139,10 @@ class CSSet final
return;
auto *ci = anope_dynamic_static_cast<ChannelInfo *>(s);
Anope::string modes;
data["last_modes"] >> modes;
ci->last_modes.clear();
for (spacesepstream sep(modes); sep.GetToken(modes);)
spacesepstream sep(data.Load("last_modes"));
for (Anope::string modes; sep.GetToken(modes);)
{
if (modes[0] == '+')
{