diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:32:03 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:32:03 +0000 |
commit | 0ed3ef9dee2cb8f4b0c37da218a2fd1eee8c31f6 (patch) | |
tree | 933fa0ba26a0113b0404ca52796440bc297a614c /src/modules/m_check.cpp | |
parent | d9e3bb8d4343643504ab7ee6ab943a000065cc8a (diff) |
Add SerializeFormat for easier metadata formatting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11704 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 13 |
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) |