summaryrefslogtreecommitdiff
path: root/src/module.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-15 01:45:38 -0400
committerAdam <Adam@anope.org>2010-08-15 01:45:38 -0400
commita950ed8cabfeca55c909f02412b1788bd386dcff (patch)
treecfa9a16c2385176490ea849f6a4041ee9456c8eb /src/module.cpp
parent4d0a1aaabd861bb7cd1e378bd1e600af1d34d5d2 (diff)
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
Diffstat (limited to 'src/module.cpp')
-rw-r--r--src/module.cpp11
1 files changed, 11 insertions, 0 deletions
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);
+}
+