summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 00:25:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 00:25:26 +0300
commit369dccecf7540c8ea3c050116c2fde5914e75a40 (patch)
tree61503d6de7437c5c702e5f9758725a7f4b74fa78 /src/actions/commands.cpp
parent1333ccee41e2acca4ecf4a90a6b230e8bbd23f7d (diff)
downloadmv-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.gz
mv-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.bz2
mv-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.xz
mv-369dccecf7540c8ea3c050116c2fde5914e75a40.zip
Move chat command /away into actions.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 2ee223386..84e093a40 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -347,4 +347,14 @@ impHandler(commandEmotePet)
return true;
}
+impHandler(awayMessage)
+{
+ if (localPlayer)
+ {
+ localPlayer->setAway(event.args);
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions