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 | |
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')
-rw-r--r-- | src/actions/commands.cpp | 10 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 11 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 diff --git a/src/actions/commands.h b/src/actions/commands.h index 4b0150d12..961029002 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -43,6 +43,7 @@ namespace Actions decHandler(commandOutfit); decHandler(commandEmote); decHandler(commandEmotePet); + decHandler(awayMessage); } // namespace Actions #undef decHandler |