mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
cs_set: clear last modes before unserializing them
This commit is contained in:
@@ -1135,6 +1135,7 @@ class CSSet : public Module
|
||||
ChannelInfo *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);)
|
||||
{
|
||||
size_t c = modes.find(',');
|
||||
|
||||
Reference in New Issue
Block a user