diff options
author | David Athay <ko2fan@gmail.com> | 2008-10-15 15:45:14 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-10-15 15:45:14 +0000 |
commit | 438be47fa7078cd235bda7d2461024ddc222c026 (patch) | |
tree | 45afebcc356b7e77a8999ef1bda638c638522fae /src/commandhandler.cpp | |
parent | 61a5caef2951f7e0e3a660514eb5d778d787df8f (diff) | |
download | mana-client-438be47fa7078cd235bda7d2461024ddc222c026.tar.gz mana-client-438be47fa7078cd235bda7d2461024ddc222c026.tar.bz2 mana-client-438be47fa7078cd235bda7d2461024ddc222c026.tar.xz mana-client-438be47fa7078cd235bda7d2461024ddc222c026.zip |
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
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 11 |
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"); |