1
0
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:
Adam
2016-07-23 16:17:21 -04:00
parent 647f8cd4e6
commit 5bd3fde79b
+1
View File
@@ -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(',');