summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-27 01:59:38 -0500
committerAdam <Adam@anope.org>2013-01-27 01:59:38 -0500
commit0052dd29a7b0f8286990a49af6e4947e4bc784cf (patch)
tree0602378c773b581bdbc5d7f6973945bf4908cddf /src
parent50a42d2cbf2ff00ecab6bd432e88c8ca17a47219 (diff)
Fix db_flatfile not clearing databases on save if there are no objects left of that type (it will leave the old database with old objects currently)
Diffstat (limited to 'src')
-rw-r--r--src/serialize.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serialize.cpp b/src/serialize.cpp
index 5594cf93e..4f0068a48 100644
--- a/src/serialize.cpp
+++ b/src/serialize.cpp
@@ -170,3 +170,8 @@ const std::vector<Anope::string> &Type::GetTypeOrder()
return TypeOrder;
}
+const std::map<Anope::string, Serialize::Type *>& Type::GetTypes()
+{
+ return Types;
+}
+