summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 600b86f4b..ddc07ad90 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -81,6 +81,7 @@
ChatTab *const tab)
extern std::string tradePartnerName;
+extern char **environ;
namespace Commands
{
@@ -1007,6 +1008,16 @@ impHandler2(dumpGraphics)
outStringNormal(tab, str, str);
}
+impHandler0(dumpEnvironment)
+{
+ logger->log("Start environment variables");
+ for (char **env = environ; *env; ++ env)
+ logger->log(*env);
+ logger->log("End environment variables");
+ if (debugChatTab)
+ debugChatTab->chatLog(_("Environment variables dumped"));
+}
+
impHandler2(dumpTests)
{
std::string str = config.getStringValue("testInfo");