summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 20:53:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 20:53:04 +0300
commit67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d (patch)
tree912d2741d258a32f966d5cbb984a5865a5492783 /src/actions
parenta4077c474c370275442982965bb174b2e1e59422 (diff)
downloadmv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.tar.gz
mv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.tar.bz2
mv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.tar.xz
mv-67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d.zip
Move chat command /dirs into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp16
-rw-r--r--src/actions/actions.h1
2 files changed, 17 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index a46e37347..65f6e366c 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -702,4 +702,20 @@ impHandler(undress)
return true;
}
+impHandler0(dirs)
+{
+ if (!debugChatTab)
+ return false;
+
+ debugChatTab->chatLog("config directory: "
+ + settings.configDir);
+ debugChatTab->chatLog("logs directory: "
+ + settings.localDataDir);
+ debugChatTab->chatLog("screenshots directory: "
+ + settings.screenshotDir);
+ debugChatTab->chatLog("temp directory: "
+ + settings.tempDir);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 4b586b169..f80c4f8e6 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -66,6 +66,7 @@ namespace Actions
decHandler(cacheInfo);
decHandler(disconnect);
decHandler(undress);
+ decHandler(dirs);
} // namespace Actions
#undef decHandler