diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-01-18 16:40:22 +0100 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2010-01-18 16:47:29 +0100 |
commit | 757e2a56e546d7e266660e9670a14d8043924cb2 (patch) | |
tree | efe0ae9c0c2bf359225925eb021c2fd696a97d44 /src/account-server | |
parent | dfc6875e292e6b4ff26506a42d4becbe440e61fc (diff) | |
download | manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.gz manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.xz manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.zip |
Reverted the accountserver-affecting changes of commits a9a87aea and dfc6875e - doesn't work out the way I planned.
Diffstat (limited to 'src/account-server')
-rw-r--r-- | src/account-server/accounthandler.cpp | 5 | ||||
-rw-r--r-- | src/account-server/storage.cpp | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp index dbd74b0..83a4a8a 100644 --- a/src/account-server/accounthandler.cpp +++ b/src/account-server/accounthandler.cpp @@ -29,7 +29,6 @@ #include "account-server/serverhandler.hpp" #include "chat-server/chathandler.hpp" #include "common/configuration.hpp" -#include "common/permissionmanager.hpp" #include "common/transaction.hpp" #include "net/connectionhandler.hpp" #include "net/messagein.hpp" @@ -235,7 +234,7 @@ void AccountHandler::handleLoginMessage(AccountClient &client, MessageIn &msg) return; } - if (PermissionManager::checkPermission(acc->getLevel(), "!play") != PermissionManager::PMR_ALLOWED) + if (acc->getLevel() == AL_BANNED) { reply.writeByte(LOGIN_BANNED); client.send(reply); @@ -390,7 +389,7 @@ void AccountHandler::handleRegisterMessage(AccountClient &client, MessageIn &msg // we ask for it again when we need it and verify it // through comparing it with the hash acc->setEmail(sha256(email)); - acc->setLevel(0x01); + acc->setLevel(AL_PLAYER); // set the date and time of the account registration, and the last login time_t regdate; diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp index 7bc020c..c547977 100644 --- a/src/account-server/storage.cpp +++ b/src/account-server/storage.cpp @@ -36,9 +36,6 @@ #include "utils/xml.hpp" #include "utils/sha256.h" -#define AL_BANNED 0x00 // temporary workaround until permission manager support is added -#define AL_PLAYER 0x01 // temporary workaround until permission manager support is added - // TODO: make data/items.xml a constant or read it from config file static const char *DEFAULT_ITEM_FILE = "data/items.xml"; |