summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-07-23 16:17:21 -0400
committerAdam <Adam@anope.org>2016-07-23 16:17:21 -0400
commit5bd3fde79b8dac1b52936544ffdcaa1febe8b1bb (patch)
treefbc57582bdd7c0f19128986a807f8c4d09278a22
parent647f8cd4e639e230d80046ee5967f88a72bdee4a (diff)
cs_set: clear last modes before unserializing them
-rw-r--r--modules/commands/cs_set.cpp1
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(',');