]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
cmd_modules Don't show the memory addresses of Module objects to opers
authorAttila Molnar <attilamolnar@hush.com>
Tue, 12 May 2015 21:38:53 +0000 (23:38 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 12 May 2015 21:38:53 +0000 (23:38 +0200)
src/coremods/core_info/cmd_modules.cpp

index cee3708704ed04d5d6355db9da96931d32684891..7f31beaf8410649fd017e887ba10b20de7751ffa 100644 (file)
@@ -65,12 +65,12 @@ CmdResult CommandModules::Handle (const std::vector<std::string>& parameters, Us
                                        flags[pos] = '-';
 
 #ifdef PURE_STATIC
-                       user->SendText(":%s 702 %s :%p %s %s :%s", ServerInstance->Config->ServerName.c_str(),
-                               user->nick.c_str(), (void*)m, m->ModuleSourceFile.c_str(), flags.c_str(), V.description.c_str());
+                       user->SendText(":%s 702 %s :%s %s :%s", ServerInstance->Config->ServerName.c_str(),
+                               user->nick.c_str(), m->ModuleSourceFile.c_str(), flags.c_str(), V.description.c_str());
 #else
                        std::string srcrev = m->ModuleDLLManager->GetVersion();
-                       user->SendText(":%s 702 %s :%p %s %s :%s - %s", ServerInstance->Config->ServerName.c_str(),
-                               user->nick.c_str(), (void*)m, m->ModuleSourceFile.c_str(), flags.c_str(), V.description.c_str(), srcrev.c_str());
+                       user->SendText(":%s 702 %s :%s %s :%s - %s", ServerInstance->Config->ServerName.c_str(),
+                               user->nick.c_str(), m->ModuleSourceFile.c_str(), flags.c_str(), V.description.c_str(), srcrev.c_str());
 #endif
                }
                else