diff options
author | David Athay <ko2fan@gmail.com> | 2008-11-06 16:02:12 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-11-06 16:02:12 +0000 |
commit | 2e7a4d66bd9ce5077b7a0062aff856d669e05b97 (patch) | |
tree | fbe2623101ca6fa849d9a7f739f73b40f34d1abb /src/commandhandler.cpp | |
parent | 222db257d7de12f1077eb43d448d6b357d4642e7 (diff) | |
download | Mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.gz Mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.bz2 Mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.xz Mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.zip |
Added interface for sending post.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 20 |
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"); |