summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-29 12:56:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-29 12:56:16 +0300
commit1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f (patch)
tree3eea380919dae735fdbeacff314edf1ad06d26ab /src/commands.cpp
parent0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5 (diff)
downloadplus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.gz
plus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.bz2
plus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.tar.xz
plus-1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f.zip
Move many variables from client into settings.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 711806021..46efeffbd 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -31,6 +31,7 @@
#include "guildmanager.h"
#include "main.h"
#include "party.h"
+#include "settings.h"
#include "being/localplayer.h"
#include "being/playerrelations.h"
@@ -869,13 +870,13 @@ impHandler0(dirs)
return;
debugChatTab->chatLog("config directory: "
- + client->getConfigDirectory());
+ + settings.configDir);
debugChatTab->chatLog("logs directory: "
- + client->getLocalDataDirectory());
+ + settings.localDataDir);
debugChatTab->chatLog("screenshots directory: "
- + client->getScreenshotDirectory());
+ + settings.screenshotDir);
debugChatTab->chatLog("temp directory: "
- + client->getTempDirectory());
+ + settings.tempDir);
}
impHandler2(info)
@@ -1371,7 +1372,7 @@ impHandler2(uploadServerConfig)
impHandler2(uploadLog)
{
uploadFile(_("Uploaded log into:"),
- client->getLogFileName(),
+ settings.logFileName,
"?txt",
tab);
}