From 6e99f459bf4895e41118dbcf00ed3ba027b5b952 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 00:34:50 +0300 Subject: Move chat command /pseudoaway into actions. --- src/actions/commands.cpp | 11 +++++++++++ src/actions/commands.h | 1 + 2 files changed, 12 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 84e093a40..e32aee7a3 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -357,4 +357,15 @@ impHandler(awayMessage) return false; } +impHandler(pseudoAway) +{ + if (localPlayer) + { + localPlayer->setPseudoAway(event.args); + localPlayer->updateStatus(); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 961029002..8f6813210 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -44,6 +44,7 @@ namespace Actions decHandler(commandEmote); decHandler(commandEmotePet); decHandler(awayMessage); + decHandler(pseudoAway); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2