summaryrefslogtreecommitdiff
path: root/modules/database/flatfile.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-07 17:57:35 -0400
committerAdam <Adam@anope.org>2016-10-07 17:57:35 -0400
commit005434abce2f7f741f92fc81f24fb0a61c38ce56 (patch)
tree1e2642f5d41a1291b53f76d643cabc802481c655 /modules/database/flatfile.cpp
parent068f10c987ff114d3b950cf2b416dd86c46d542c (diff)
Set shared library suffix to .so, add missing serializable type GetTypes definition
Diffstat (limited to 'modules/database/flatfile.cpp')
-rw-r--r--modules/database/flatfile.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/database/flatfile.cpp b/modules/database/flatfile.cpp
index b45a89d44..7e2d5e949 100644
--- a/modules/database/flatfile.cpp
+++ b/modules/database/flatfile.cpp
@@ -37,15 +37,11 @@ class DBFlatFile : public Module
{
last_day = tm->tm_mday;
- const std::map<Anope::string, Serialize::TypeBase *> &types = Serialize::TypeBase::GetTypes();
-
std::set<Anope::string> dbs;
dbs.insert(Config->GetModule(this)->Get<Anope::string>("database", "anope.db"));
- for (const std::pair<Anope::string, Serialize::TypeBase *> &p : types)
+ for (Serialize::TypeBase *stype : Serialize::TypeBase::GetTypes())
{
- Serialize::TypeBase *stype = p.second;
-
if (stype->GetOwner())
dbs.insert("module_" + stype->GetOwner()->name + ".db");
}