summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-01-18 16:40:22 +0100
committerPhilipp Sehmisch <mana@crushnet.org>2010-01-18 16:47:29 +0100
commit757e2a56e546d7e266660e9670a14d8043924cb2 (patch)
treeefe0ae9c0c2bf359225925eb021c2fd696a97d44 /src/account-server/accounthandler.cpp
parentdfc6875e292e6b4ff26506a42d4becbe440e61fc (diff)
downloadmanaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.gz
manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.bz2
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/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index dbd74b07..83a4a8a0 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;