From e80a1296a096ff2c495b3cd2a3913d5e5f6ec450 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 14 Oct 2009 18:39:38 +0000 Subject: Move static map of extensions into ServerInstance, add const-correctness git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11873 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/modules/m_check.cpp') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 309499ff5..729667fa8 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -38,14 +38,12 @@ class CommandCheck : public Command std::stringstream dumpkeys; for(ExtensibleStore::const_iterator i = ext->GetExtList().begin(); i != ext->GetExtList().end(); i++) { - ExtensionItem* item = Extensible::GetItem(i->first); - std::string value; - if (item) - value = item->serialize(FORMAT_USER, ext, i->second); + ExtensionItem* item = i->first; + std::string value = item->serialize(FORMAT_USER, ext, i->second); if (value.empty()) dumpkeys << " " << i->first; else - ServerInstance->DumpText(user, checkstr + " meta:" + i->first + " " + value); + ServerInstance->DumpText(user, checkstr + " meta:" + item->key + " " + value); } if (!dumpkeys.str().empty()) ServerInstance->DumpText(user,checkstr + " metadata", dumpkeys); -- cgit v1.2.3