From 7550d326fd1d1811eb3dcbf33a41ec57e109ddae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Jan 2014 12:29:25 +0300 Subject: add dumpmods chat command for show enabled mods. --- src/commands.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 07e0414d5..72fedeff1 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1311,6 +1311,12 @@ impHandler0(testsdlfont) #endif } +impHandler2(dumpMods) +{ + std::string str = "enabled mods: " + serverConfig.getValue("mods", ""); + outStringNormal(tab, str, str); +} + #ifdef USE_OPENGL impHandler2(dumpGL) { -- cgit v1.2.3-60-g2f50