summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-15 21:25:21 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-15 21:25:21 +0000
commit94d7827e8b101b528c427298fada73664970cf26 (patch)
tree6bf670f0088a4e8b16fdf3dd344838debe027bb3 /src
parent9a1d63bd22de06c0ed153ff19bdaf7769184d73d (diff)
Fix null ExtensionItem when unregistering hooks; fix CORE_FLAGS on darwin
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11729 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/base.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 1e4f746af..aac66fd3f 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -137,9 +137,11 @@ Extensible::~Extensible()
{
for(ExtensibleStore::iterator i = extensions.begin(); i != extensions.end(); ++i)
{
- ExtensionItem* type = extension_types[i->first];
+ ExtensionItem* type = GetItem(i->first);
if (type)
type->free(i->second);
+ else if (ServerInstance && ServerInstance->Logs)
+ ServerInstance->Logs->Log("BASE", ERROR, "Extension type %s is not registered", i->first.c_str());
}
}