summaryrefslogtreecommitdiff
path: root/src/game-server/commandhandler.cpp
diff options
context:
space:
mode:
authorMaximilian Philipps <Turmfalke2007@web.de>2009-07-05 00:43:10 +0200
committerJared Adams <jaxad0127@gmail.com>2009-07-08 11:09:20 -0600
commitbf2248220db63fd21bd4d3facc52ce8624d2928c (patch)
treeef0614e662da05e06ad95ed6fed4db8f13670f6e /src/game-server/commandhandler.cpp
parent5b56b981f9957597f8fb9761c7cac77b88761c52 (diff)
downloadmanaserv-bf2248220db63fd21bd4d3facc52ce8624d2928c.tar.gz
manaserv-bf2248220db63fd21bd4d3facc52ce8624d2928c.tar.bz2
manaserv-bf2248220db63fd21bd4d3facc52ce8624d2928c.tar.xz
manaserv-bf2248220db63fd21bd4d3facc52ce8624d2928c.zip
changed handleAnnounce to send the full message not only the first word
Diffstat (limited to 'src/game-server/commandhandler.cpp')
-rw-r--r--src/game-server/commandhandler.cpp5
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);