From a950ed8cabfeca55c909f02412b1788bd386dcff Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 15 Aug 2010 01:45:38 -0400 Subject: Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now. --- src/module.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/module.cpp') diff --git a/src/module.cpp b/src/module.cpp index aa46a6f63..9431137b7 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -92,3 +92,14 @@ unsigned Version::GetBuild() const { return this->Build; } + +Service::Service(Module *o, const Anope::string &n) : owner(o), name(n) +{ + ModuleManager::RegisterService(this); +} + +Service::~Service() +{ + ModuleManager::UnregisterService(this); +} + -- cgit