summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 7ec48f46..58b8905d 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -93,6 +93,17 @@ void CommandHandler::handleCommand(const std::string &command)
{
handleOp(args);
}
+ else if (type == "post")
+ {
+ std::string::size_type pos = args.find(' ');
+ std::string recipient(args, 0, pos);
+ std::string text(args, pos+1);
+ Net::GameServer::Player::sendLetter(recipient, text);
+ }
+ else if (type == "check")
+ {
+ Net::GameServer::Player::getLetters();
+ }
else
{
chatWindow->chatLog("Unknown command");