summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-30 21:32:28 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-30 21:32:28 +0300
commitcefd145c44d73dd7c1d8739cba404418ccb74602 (patch)
treed54c9be187be569cb499771071188e710a6c9fef /src/commandhandler.cpp
parentb2a0d0719989384171061edff8d720a9ab33467f (diff)
downloadplus-cefd145c44d73dd7c1d8739cba404418ccb74602.tar.gz
plus-cefd145c44d73dd7c1d8739cba404418ccb74602.tar.bz2
plus-cefd145c44d73dd7c1d8739cba404418ccb74602.tar.xz
plus-cefd145c44d73dd7c1d8739cba404418ccb74602.zip
Add pseudo away chat command.
Command: /pseudoaway [test]
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp9
1 files changed, 9 insertions, 0 deletions
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)