diff options
author | Adam <Adam@anope.org> | 2016-07-23 16:17:21 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-07-23 16:17:21 -0400 |
commit | 5bd3fde79b8dac1b52936544ffdcaa1febe8b1bb (patch) | |
tree | fbc57582bdd7c0f19128986a807f8c4d09278a22 | |
parent | 647f8cd4e639e230d80046ee5967f88a72bdee4a (diff) |
cs_set: clear last modes before unserializing them
-rw-r--r-- | modules/commands/cs_set.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp index fb58f9efd..bac744b2c 100644 --- a/modules/commands/cs_set.cpp +++ b/modules/commands/cs_set.cpp @@ -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(','); |