diff options
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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); |