summaryrefslogtreecommitdiffstats
path: root/src/chat-server
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/chat-server
parentdfc6875e292e6b4ff26506a42d4becbe440e61fc (diff)
downloadmanaserv-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/chat-server')
-rw-r--r--src/chat-server/chathandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/chat-server/chathandler.cpp b/src/chat-server/chathandler.cpp
index 27a9a00..0069eb9 100644
--- a/src/chat-server/chathandler.cpp
+++ b/src/chat-server/chathandler.cpp
@@ -31,7 +31,6 @@
#include "chat-server/chatclient.hpp"
#include "chat-server/chathandler.hpp"
#include "common/transaction.hpp"
-#include "common/permissionmanager.hpp"
#include "net/connectionhandler.hpp"
#include "net/messagein.hpp"
#include "net/messageout.hpp"
@@ -321,7 +320,7 @@ ChatHandler::handleAnnounceMessage(ChatClient &client, MessageIn &msg)
return;
}
- if (PermissionManager::checkPermission(client.accountLevel, "@broadcast") == PermissionManager::PMR_ALLOWED)
+ if (client.accountLevel == AL_ADMIN || client.accountLevel == AL_GM)
{
// TODO: b_lindeijer: Shouldn't announcements also have a sender?
LOG_INFO("ANNOUNCE: " << text);