]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_info/cmd_modules.cpp
Merge branch 'insp20' into master.
[user/henk/code/inspircd.git] / src / coremods / core_info / cmd_modules.cpp
index fa8c2aebbc61c2c91be428d09f69d91cc67830da..7212e9525331e173403aca1dec4665d4122e99bc 100644 (file)
@@ -38,7 +38,7 @@ CommandModules::CommandModules(Module* parent)
 
 /** Handle /MODULES
  */
-CmdResult CommandModules::Handle (const std::vector<std::string>& parameters, User *user)
+CmdResult CommandModules::Handle(User* user, const Params& parameters)
 {
        // Don't ask remote servers about their modules unless the local user asking is an oper
        // 2.0 asks anyway, so let's handle that the same way
@@ -71,12 +71,8 @@ CmdResult CommandModules::Handle (const std::vector<std::string>& parameters, Us
                                if (!(V.Flags & mult))
                                        flags[pos] = '-';
 
-#ifdef INSPIRCD_STATIC
-                       user->WriteRemoteNumeric(RPL_MODLIST, m->ModuleSourceFile, INSPIRCD_VERSION, flags, V.description);
-#else
                        std::string srcrev = m->ModuleDLLManager->GetVersion();
                        user->WriteRemoteNumeric(RPL_MODLIST, m->ModuleSourceFile, srcrev.empty() ? "*" : srcrev, flags, V.description);
-#endif
                }
                else
                {