summaryrefslogtreecommitdiff
path: root/src/game-server/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/commandhandler.cpp')
-rw-r--r--src/game-server/commandhandler.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp
index d9445334..5bd6a04f 100644
--- a/src/game-server/commandhandler.cpp
+++ b/src/game-server/commandhandler.cpp
@@ -733,7 +733,7 @@ static void handleRecall(Character *player, std::string &args)
GameState::warp(other, map, pos.x, pos.y);
}
-static void handleReload(Character *player, std::string &args)
+static void handleReload(Character *, std::string &)
{
// reload the items and monsters
itemManager->reload();
@@ -832,7 +832,9 @@ static void handleGivePermission(Character *player, std::string &args)
if (permission & other->getAccountLevel())
{
say(player->getName()+" already has the permission "+strPermission, player);
- } else {
+ }
+ else
+ {
permission += other->getAccountLevel();
// change the player's account level
other->setAccountLevel(permission);
@@ -992,7 +994,7 @@ static void handleAnnounce(Character *player, std::string &msg)
GameState::sayToAll(msg);
}
-static void handleWhere(Character *player, std::string &args)
+static void handleWhere(Character *player, std::string &)
{
std::stringstream str;
str << "Your current location is map "
@@ -1005,7 +1007,7 @@ static void handleWhere(Character *player, std::string &args)
say (str.str(), player);
}
-static void handleRights(Character *player, std::string &args)
+static void handleRights(Character *player, std::string &)
{
std::list<std::string>classes;
classes = PermissionManager::getClassList(player);