diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-03 18:39:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-03 18:39:14 +0300 |
commit | 0928d201335e8c247a44a1406cfbee3921ee7901 (patch) | |
tree | 06e5d2acf36921f368ae445ba1eac8e351181f18 /src/dirs.cpp | |
parent | 74397044b572c323f9c6bbc6338c17ce743ee3af (diff) | |
download | manaverse-0928d201335e8c247a44a1406cfbee3921ee7901.tar.gz manaverse-0928d201335e8c247a44a1406cfbee3921ee7901.tar.bz2 manaverse-0928d201335e8c247a44a1406cfbee3921ee7901.tar.xz manaverse-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.cpp | 16 |
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())); } } |