Fix potentially generating an invalid permchannel database.

This commit is contained in:
Sadie Powell 2024-10-01 14:59:24 +01:00
parent c2c5b44983
commit 5e1310188b

View File

@ -160,7 +160,7 @@ static bool WriteDatabase(PermChannel& permchanmode, bool save_listmodes, unsign
{
if (entry != list->begin())
stream << ' ';
stream << entry->mask << ' ' << entry->setter << ' ' << entry->time;
stream << ServerConfig::Escape(entry->mask) << ' ' << ServerConfig::Escape(entry->setter) << ' ' << entry->time;
}
stream << "\"" << std::endl;
}