From c7266cda03bcab72b147b5597a126f01f915fe2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 22:53:07 +0300 Subject: Move chat command /serverignoreall into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/chat.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 3d5353deb..572333a3d 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -394,6 +394,7 @@ namespace InputAction REMOVE_ATTACK, ADD_IGNORE_ATTACK, DUMP, + SERVER_IGNORE_ALL, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index ff79cafb3..82973a0cc 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3315,6 +3315,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "dump", + false}, + {"keyServerIgnoreAll", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::serverIgnoreAll, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "serverignoreall", false} }; diff --git a/src/input/pages/chat.cpp b/src/input/pages/chat.cpp index 234892c77..27e239cce 100644 --- a/src/input/pages/chat.cpp +++ b/src/input/pages/chat.cpp @@ -84,6 +84,12 @@ SetupActionData setupActionDataChat[] = InputAction::IGNORE_ALL_WHISPERS, "", }, + { + // TRANSLATORS: input action name + N_("Ignore all whispers on server side"), + InputAction::SERVER_IGNORE_ALL, + "", + }, { // TRANSLATORS: input action name N_("Previous chat line"), -- cgit v1.2.3-70-g09d2