From 52eaa7d6d61e3373340fd5a69b92b0fb3b5609e0 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 25 Jan 2012 15:48:07 -0500 Subject: Windows --- include/modules.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index c4a6c8f62..d251be353 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1123,13 +1123,14 @@ class CallBack : public Timer } }; -template +template class service_reference : public dynamic_reference { + Anope::string type; Anope::string name; public: - service_reference(const Anope::string &n) : dynamic_reference(NULL), name(n) + service_reference(const Anope::string &t, const Anope::string &n) : dynamic_reference(NULL), type(t), name(n) { } @@ -1147,7 +1148,7 @@ class service_reference : public dynamic_reference } if (!this->ref) { - this->ref = static_cast(Service::FindService(this->name)); + this->ref = static_cast(Service::FindService(this->type, this->name)); if (this->ref) this->ref->AddReference(this); } -- cgit