diff options
author | Adam <Adam@anope.org> | 2011-10-27 18:01:56 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-27 18:01:56 -0400 |
commit | d9333e02fa455303b7236b6f002625f2cad4ed19 (patch) | |
tree | 82f3f751f19807726cdb547069945099ef4efca0 /include/services.h | |
parent | 39ac438b8d70d525e765a1864e7655cfea77fdc8 (diff) |
Clear flags before rebuilding them from the databases. Fixes bug #1351 where default flags would always be set when unserializing objects.
Diffstat (limited to 'include/services.h')
-rw-r--r-- | include/services.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/services.h b/include/services.h index 1179068b5..3ce8ad86f 100644 --- a/include/services.h +++ b/include/services.h @@ -332,6 +332,8 @@ template<typename T, size_t Size = 32> class Flags void FromVector(const std::vector<Anope::string> &strings) { + this->ClearFlags(); + for (unsigned i = 0; this->Flag_Strings && !this->Flag_Strings[i].empty(); ++i) for (unsigned j = 0; j < strings.size(); ++j) if (this->Flag_Strings[i] == strings[j]) |