summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-07-23 16:20:54 -0400
committerAdam <Adam@anope.org>2016-07-23 16:20:54 -0400
commitc18eedec18e401a8948f40419d6b957d3fecf2f6 (patch)
tree25f018a426fcd14160d6bc2b753d9e67ef272d8b
parent0e0615c6fecce363e0ad007319c777cf9481dd25 (diff)
ns_set: clear last modes before unserializing them
-rw-r--r--modules/commands/ns_set.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index f9351424e..132bd6947 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -1211,6 +1211,7 @@ class NSSet : public Module
NickCore *nc = anope_dynamic_static_cast<NickCore *>(s);
Anope::string modes;
data["last_modes"] >> modes;
+ nc->last_modes.clear();
for (spacesepstream sep(modes); sep.GetToken(modes);)
{
size_t c = modes.find(',');