summaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-25 04:19:15 -0400
committerAdam <Adam@anope.org>2011-09-25 04:19:15 -0400
commit1f2399de364c09adcce4193895cd362d80ffdfc5 (patch)
tree5f40fc531f22c174b6e10bb7bc12842a4a21d30b /src/base.cpp
parent43201ead9575a74e350710bc191f4ac67366aca7 (diff)
Added a new database format and sqlite support. Also moved db-convert to a module.
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 0aec072a1..18450ef90 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -1,6 +1,22 @@
#include "services.h"
#include "modules.h"
+std::vector<SerializableBase *> serialized_types;
+std::list<SerializableBase *> serialized_items;
+
+void RegisterTypes()
+{
+ Serializable<NickCore>::Alloc.Register("NickCore");
+ Serializable<NickAlias>::Alloc.Register("NickAlias");
+ Serializable<BotInfo>::Alloc.Register("BotInfo");
+ Serializable<ChannelInfo>::Alloc.Register("ChannelInfo");
+ Serializable<LogSetting>::Alloc.Register("LogSetting");
+ Serializable<ModeLock>::Alloc.Register("ModeLock");
+ Serializable<AutoKick>::Alloc.Register("AutoKick");
+ Serializable<BadWord>::Alloc.Register("BadWord");
+ Serializable<Memo>::Alloc.Register("Memo");
+}
+
Base::Base()
{
}