From 0928d201335e8c247a44a1406cfbee3921ee7901 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Feb 2016 18:39:14 +0300 Subject: Add option for saving mapping between account id and nicks. This information stored in separate files. --- src/dirs.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/dirs.cpp') 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())); } } -- cgit v1.2.3-60-g2f50