From cefd145c44d73dd7c1d8739cba404418ccb74602 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 30 Oct 2011 21:32:28 +0300 Subject: Add pseudo away chat command. Command: /pseudoaway [test] --- src/commandhandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/commandhandler.cpp') diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index cac12b8ec..f90fd364f 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -149,6 +149,8 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab) handleEmote(args, tab); else if (type == "away") handleAway(args, tab); + else if (type == "pseudoaway") + handlePseudoAway(args, tab); else if (type == "follow") handleFollow(args, tab); else if (type == "heal") @@ -712,6 +714,13 @@ void CommandHandler::handleAway(const std::string &args, ChatTab *tab A_UNUSED) player_node->setAway(args); } +void CommandHandler::handlePseudoAway(const std::string &args, + ChatTab *tab A_UNUSED) +{ + if (player_node) + player_node->setPseudoAway(args); +} + void CommandHandler::handleFollow(const std::string &args, ChatTab *tab) { if (!player_node) -- cgit v1.2.3-60-g2f50