diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 13:11:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 13:11:54 +0300 |
commit | 2981363fef524501a4a24a5f4c60661ebdee80fa (patch) | |
tree | 6067275efc1b7c512436725f9ff1928b63bead13 /src/actions | |
parent | 7c87b2ac8e01307e603bd85420f8d10724a296e6 (diff) | |
download | mv-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.gz mv-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.bz2 mv-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.xz mv-2981363fef524501a4a24a5f4c60661ebdee80fa.zip |
Move chat command /dumpmods into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 7 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 9f3259c09..22dd4834b 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -986,4 +986,11 @@ impHandler0(dumpGL) } #endif +impHandler(dumpMods) +{ + std::string str = "enabled mods: " + serverConfig.getValue("mods", ""); + outStringNormal(event.tab, str, str); + return true; +} + } // namespace Actions diff --git a/src/actions/actions.h b/src/actions/actions.h index 4aaa8b199..7a8217570 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -77,6 +77,7 @@ namespace Actions decHandler(dumpTests); decHandler(dumpOGL); decHandler(dumpGL); + decHandler(dumpMods); } // namespace Actions #undef decHandler |