summaryrefslogtreecommitdiff
path: root/src/game-server/commandhandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-18 14:00:55 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-18 14:00:55 +0100
commitc59fe51b4c9c08ccb2e001baf9b2f347fc2fc0ee (patch)
treed43544fee9be0b67470879c147de23483e725046 /src/game-server/commandhandler.cpp
parent947014cf3c9477b44bafe389653f28074e9b43b3 (diff)
downloadmanaserv-c59fe51b4c9c08ccb2e001baf9b2f347fc2fc0ee.tar.gz
manaserv-c59fe51b4c9c08ccb2e001baf9b2f347fc2fc0ee.tar.bz2
manaserv-c59fe51b4c9c08ccb2e001baf9b2f347fc2fc0ee.tar.xz
manaserv-c59fe51b4c9c08ccb2e001baf9b2f347fc2fc0ee.zip
Fixed invalid permission spam for low level accounts
Diffstat (limited to 'src/game-server/commandhandler.cpp')
-rw-r--r--src/game-server/commandhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp
index 26c097d8..9aefbcab 100644
--- a/src/game-server/commandhandler.cpp
+++ b/src/game-server/commandhandler.cpp
@@ -740,11 +740,11 @@ static void handleRights(Character *player)
str << "Your rights level is: "
<< player->getAccountLevel()
<< " (AL_PLAYER";
- if (checkPermission(player, AL_TESTER))
+ if (player->getAccountLevel() & AL_TESTER)
str << ", AL_TESTER";
- if (checkPermission(player, AL_GM))
+ if (player->getAccountLevel() & AL_GM)
str << ", AL_GM";
- if (checkPermission(player, AL_ADMIN))
+ if (player->getAccountLevel() & AL_ADMIN)
str << ", AL_ADMIN";
str << ")";
say(str.str(), player);