From b030143a03ab3d65225f8c2351469b2e8daa0e94 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 21:27:08 +0300 Subject: Move chat command /present 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 1ec9f03c7..103248aa8 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -252,4 +252,14 @@ impHandler(chatEnemy) return true; } +impHandler0(present) +{ + if (chatWindow) + { + chatWindow->doPresent(); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index c978cb57b..bd9a7148c 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -36,6 +36,7 @@ namespace Actions decHandler(chatBlackList); decHandler(chatEnemy); decHandler(chatErase); + decHandler(present); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2