From 438be47fa7078cd235bda7d2461024ddc222c026 Mon Sep 17 00:00:00 2001 From: David Athay Date: Wed, 15 Oct 2008 15:45:14 +0000 Subject: src/localplayer.cpp src/net/beinghandler.cpp src/net/protocol.h src/net/gameserver/player.h src/net/gameserver/player.cpp src/net/beinghandler.h ChangeLog tmw.cbp --- src/commandhandler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/commandhandler.cpp') 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"); -- cgit v1.2.3-70-g09d2