summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-03 18:39:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-03 18:39:14 +0300
commit0928d201335e8c247a44a1406cfbee3921ee7901 (patch)
tree06e5d2acf36921f368ae445ba1eac8e351181f18 /src/dirs.cpp
parent74397044b572c323f9c6bbc6338c17ce743ee3af (diff)
downloadplus-0928d201335e8c247a44a1406cfbee3921ee7901.tar.gz
plus-0928d201335e8c247a44a1406cfbee3921ee7901.tar.bz2
plus-0928d201335e8c247a44a1406cfbee3921ee7901.tar.xz
plus-0928d201335e8c247a44a1406cfbee3921ee7901.zip
Add option for saving mapping between account id and nicks.
This information stored in separate files.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 190249737..daf332b54 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -581,15 +581,23 @@ void Dirs::initUsersDir()
if (mkdir_r(settings.usersDir.c_str()))
{
// TRANSLATORS: directory creation error
- logger->error(strprintf(_("%s doesn't exist and can't be created! "
- "Exiting."), settings.usersDir.c_str()));
+ logger->error(strprintf(_("%s doesn't exist and can't be created!"),
+ settings.usersDir.c_str()));
}
settings.npcsDir = settings.serverConfigDir + "/npcs/";
if (mkdir_r(settings.npcsDir.c_str()))
{
// TRANSLATORS: directory creation error
- logger->error(strprintf(_("%s doesn't exist and can't be created! "
- "Exiting."), settings.npcsDir.c_str()));
+ logger->error(strprintf(_("%s doesn't exist and can't be created!"),
+ settings.npcsDir.c_str()));
+ }
+
+ settings.usersIdDir = settings.serverConfigDir + "/usersid/";
+ if (mkdir_r(settings.usersIdDir.c_str()))
+ {
+ // TRANSLATORS: directory creation error
+ logger->error(strprintf(_("%s doesn't exist and can't be created!"),
+ settings.usersIdDir.c_str()));
}
}