summaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 33f950b4c..847e9d5c9 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -41,7 +41,7 @@ class CommandCheck : public Command
ExtensionItem* item = Extensible::GetItem(i->first);
std::string value;
if (item)
- value = item->serialize(creator, ext, i->second);
+ value = item->serialize(FORMAT_USER, ext, i->second);
if (value.empty())
dumpkeys << " " << i->first;
else
@@ -211,17 +211,6 @@ class ModuleCheck : public Module
{
return Version("CHECK command, view user/channel details", VF_VENDOR|VF_OPTCOMMON);
}
-
- std::string ProtoTranslate(Extensible* item)
- {
- User* u = dynamic_cast<User*>(item);
- Channel* c = dynamic_cast<Channel*>(item);
- if (u)
- return u->nick;
- if (c)
- return c->name;
- return "?";
- }
};
MODULE_INIT(ModuleCheck)