From cbd616c89bd2650c931dc52a22b2309310efa196 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jan 2012 22:01:44 +0300 Subject: Add chat command /dumpt for dumping last testing values. --- src/commandhandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/commandhandler.cpp') diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 04ef1b3f4..cd8169651 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -202,6 +202,8 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab) handleServerUnIgnoreAll(args, tab); else if (type == "dumpg") handleDumpGraphics(args, tab); + else if (type == "dumpt") + handleDumpTests(args, tab); else if (tab->handleCommand(type, args)) ; else if (type == "hack") @@ -1125,6 +1127,13 @@ void CommandHandler::handleDumpGraphics(const std::string &args A_UNUSED, outString(tab, str, str); } +void CommandHandler::handleDumpTests(const std::string &args A_UNUSED, + ChatTab *tab) +{ + std::string str = config.getStringValue("testInfo"); + outString(tab, str, str); +} + #ifdef DEBUG_DUMP_LEAKS void showRes(std::string str, ResourceManager::Resources *res); -- cgit v1.2.3-60-g2f50