diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-11-15 18:26:53 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-11-15 18:26:53 +0000 |
commit | fb3964d5c007900061e86e392ceb786bd47260c0 (patch) | |
tree | 41ff940cce47b6d8ba9aef701205dd0ea6707c6f /src/base.cpp | |
parent | 8ab1381e8d277152d99a72f33f3d1c0564060fee (diff) |
Add Inspircd::AddServices
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12135 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/base.cpp b/src/base.cpp index 8e81f7b73..3ff3d5281 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -77,7 +77,11 @@ usecountbase::~usecountbase() (void*)this, usecount); } -ExtensionItem::ExtensionItem(const std::string& Key, Module* mod) : key(Key), owner(mod) +providerbase::~providerbase() +{ +} + +ExtensionItem::ExtensionItem(const std::string& Key, Module* mod) : providerbase(mod, Key, SERVICE_METADATA) { } @@ -122,7 +126,7 @@ void* ExtensionItem::unset_raw(Extensible* container) void ExtensionManager::Register(ExtensionItem* item) { - types.insert(std::make_pair(item->key, item)); + types.insert(std::make_pair(item->name, item)); } void ExtensionManager::BeginUnregister(Module* module, std::vector<reference<ExtensionItem> >& list) @@ -132,7 +136,7 @@ void ExtensionManager::BeginUnregister(Module* module, std::vector<reference<Ext { std::map<std::string, reference<ExtensionItem> >::iterator me = i++; ExtensionItem* item = me->second; - if (item->owner == module) + if (item->creator == module) { list.push_back(item); types.erase(me); |