summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-11-06 16:02:12 +0000
committerDavid Athay <ko2fan@gmail.com>2008-11-06 16:02:12 +0000
commit2e7a4d66bd9ce5077b7a0062aff856d669e05b97 (patch)
treefbe2623101ca6fa849d9a7f739f73b40f34d1abb /src/commandhandler.cpp
parent222db257d7de12f1077eb43d448d6b357d4642e7 (diff)
downloadmana-client-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.gz
mana-client-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.bz2
mana-client-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.xz
mana-client-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.zip
Added interface for sending post.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index f142af36..5c7b5e52 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -89,26 +89,6 @@ void CommandHandler::handleCommand(const std::string &command)
{
handleOp(args);
}
- else if (type == "post")
- {
- std::string::size_type pos = args.find(' ');
- if (pos == std::string::npos)
- {
- chatWindow->chatLog("Please include the user and message");
- return;
- }
- std::string recipient(args, 0, pos);
- if (recipient == "")
- {
- chatWindow->chatLog("Invalid user");
- }
- std::string text(args, pos+1);
- if (text == "")
- {
- chatWindow->chatLog("Invalid message");
- }
- Net::GameServer::Player::sendLetter(recipient, text);
- }
else
{
chatWindow->chatLog("Unknown command");