summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-22 12:29:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-22 12:29:25 +0300
commit7550d326fd1d1811eb3dcbf33a41ec57e109ddae (patch)
tree44b986fe77a4bcdf1aae4379321fee6bac3c06eb /src/commands.cpp
parent61653ea26a02841754baf97a1124aeea2b21e101 (diff)
downloadmanaplus-7550d326fd1d1811eb3dcbf33a41ec57e109ddae.tar.gz
manaplus-7550d326fd1d1811eb3dcbf33a41ec57e109ddae.tar.bz2
manaplus-7550d326fd1d1811eb3dcbf33a41ec57e109ddae.tar.xz
manaplus-7550d326fd1d1811eb3dcbf33a41ec57e109ddae.zip
add dumpmods chat command for show enabled mods.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp6
1 files changed, 6 insertions, 0 deletions
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)
{