summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 13:11:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 13:11:54 +0300
commit2981363fef524501a4a24a5f4c60661ebdee80fa (patch)
tree6067275efc1b7c512436725f9ff1928b63bead13 /src/actions
parent7c87b2ac8e01307e603bd85420f8d10724a296e6 (diff)
downloadplus-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.gz
plus-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.bz2
plus-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.xz
plus-2981363fef524501a4a24a5f4c60661ebdee80fa.zip
Move chat command /dumpmods into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp7
-rw-r--r--src/actions/actions.h1
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