diff options
-rw-r--r-- | src/game-server/commandhandler.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp index cf263103..d7d40614 100644 --- a/src/game-server/commandhandler.cpp +++ b/src/game-server/commandhandler.cpp @@ -70,7 +70,6 @@ static std::string getArgument(std::string &args) argument = args.substr(0); args = ""; } - return argument; } @@ -741,10 +740,8 @@ static void handleReport(Character *player, std::string &args) // TODO: Send the report to a developer or something } -static void handleAnnounce(Character *player, std::string &args) +static void handleAnnounce(Character *player, std::string &msg) { - std::string msg = getArgument(args); - if (msg == "") { say("Invalid number of arguments given.", player); |