summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
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");