summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 02:20:56 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 02:20:56 +0300
commit1b27066e2d98c82b0bf135188ebb57e16af669df (patch)
tree87460b10e94f0734357d57a95c311522f453647f /src/actions
parenta714a339ac461943236eb1992c38dfb16821d0a1 (diff)
downloadmanaplus-1b27066e2d98c82b0bf135188ebb57e16af669df.tar.gz
manaplus-1b27066e2d98c82b0bf135188ebb57e16af669df.tar.bz2
manaplus-1b27066e2d98c82b0bf135188ebb57e16af669df.tar.xz
manaplus-1b27066e2d98c82b0bf135188ebb57e16af669df.zip
Move chat command /dumpt 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 4717ff6ab..343caedf7 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -953,4 +953,11 @@ impHandler0(dumpEnvironment)
return true;
}
+impHandler(dumpTests)
+{
+ const std::string str = config.getStringValue("testInfo");
+ outStringNormal(event.tab, str, str);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 773d34e36..175e2d530 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -74,6 +74,7 @@ namespace Actions
decHandler(error) __attribute__ ((noreturn));
decHandler(dumpGraphics);
decHandler(dumpEnvironment);
+ decHandler(dumpTests);
} // namespace Actions
#undef decHandler