summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
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