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