diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-26 00:25:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-26 00:25:26 +0300 |
commit | 369dccecf7540c8ea3c050116c2fde5914e75a40 (patch) | |
tree | 61503d6de7437c5c702e5f9758725a7f4b74fa78 /src/actions/commands.cpp | |
parent | 1333ccee41e2acca4ecf4a90a6b230e8bbd23f7d (diff) | |
download | manaverse-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.gz manaverse-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.bz2 manaverse-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.xz manaverse-369dccecf7540c8ea3c050116c2fde5914e75a40.zip |
Move chat command /away into actions.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 10 |
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 |