summaryrefslogtreecommitdiff
path: root/src/actions
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
parent1333ccee41e2acca4ecf4a90a6b230e8bbd23f7d (diff)
downloadmanaplus-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.gz
manaplus-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.bz2
manaplus-369dccecf7540c8ea3c050116c2fde5914e75a40.tar.xz
manaplus-369dccecf7540c8ea3c050116c2fde5914e75a40.zip
Move chat command /away into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp10
-rw-r--r--src/actions/commands.h1
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