From 0ed3ef9dee2cb8f4b0c37da218a2fd1eee8c31f6 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:32:03 +0000 Subject: Add SerializeFormat for easier metadata formatting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11704 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/modules/m_check.cpp') 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(item); - Channel* c = dynamic_cast(item); - if (u) - return u->nick; - if (c) - return c->name; - return "?"; - } }; MODULE_INIT(ModuleCheck) -- cgit v1.2.3