diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-30 21:32:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-30 21:32:28 +0300 |
commit | cefd145c44d73dd7c1d8739cba404418ccb74602 (patch) | |
tree | d54c9be187be569cb499771071188e710a6c9fef /src/commandhandler.cpp | |
parent | b2a0d0719989384171061edff8d720a9ab33467f (diff) | |
download | plus-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.cpp | 9 |
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) |