From 3529ae89be2b72e34d119ed4a2aca7b30403032c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 23:42:20 +0300 Subject: Move chat command /emote into actions. --- src/actions/commands.cpp | 10 ++++++++++ src/actions/commands.h | 1 + 2 files changed, 11 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index a6d9d56a2..3a44a58b9 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -328,4 +328,14 @@ impHandler(commandOutfit) return false; } +impHandler(commandEmote) +{ + if (localPlayer) + { + localPlayer->emote(static_cast(atoi(event.args.c_str()))); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 3face961f..3577aab36 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -41,6 +41,7 @@ namespace Actions decHandler(move); decHandler(setTarget); decHandler(commandOutfit); + decHandler(commandEmote); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2