summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commandhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index f969cb43..61613654 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -277,8 +277,9 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab)
void CommandHandler::handleWhere(const std::string &args, ChatTab *tab)
{
- // TODO: add position
- tab->chatLog(map_path, BY_SERVER);
+ std::ostringstream where;
+ where << map_path << ", coordinates: " << player_node->mX << ", " << player_node->mY;
+ tab->chatLog(where.str(), BY_SERVER);
}
void CommandHandler::handleWho(const std::string &args, ChatTab *tab)