From c18eedec18e401a8948f40419d6b957d3fecf2f6 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 23 Jul 2016 16:20:54 -0400 Subject: ns_set: clear last modes before unserializing them --- modules/commands/ns_set.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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(s); Anope::string modes; data["last_modes"] >> modes; + nc->last_modes.clear(); for (spacesepstream sep(modes); sep.GetToken(modes);) { size_t c = modes.find(','); -- cgit