summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 22:35:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 22:35:17 +0300
commite597401af5d0005f3f6039cc0e76d8ecfaae66ef (patch)
tree1116a3f4fd59c0a8819bb86b21db413e26d189e6 /src/input
parentbe214fb83a0207e6675f08d299cd30d575371794 (diff)
downloadplus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.tar.gz
plus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.tar.bz2
plus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.tar.xz
plus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.zip
Add whisper commands for server side ignore/unignore whispers.
New chat commands: /serverignore NICK - ignore whispers on server from NICK. /serverunignore NICK - unignore whispers on server from NICK.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h2
-rw-r--r--src/input/inputactionmap.h18
2 files changed, 20 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index e272cefd4..2ce0518cc 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -478,6 +478,8 @@ namespace InputAction
PET_EMOTE_47,
PET_EMOTE_48,
CATCH_PET,
+ IGNORE_WHISPER,
+ UNIGNORE_WHISPER,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index a355c33ba..3e95f4291 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4044,6 +4044,24 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::INGAME,
"catchpet|catch",
true},
+ {"keyChatServerIgnoreWhisper",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT | Input::GRP_GUI,
+ &Actions::serverIgnoreWhisper,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "serverignore",
+ false},
+ {"keyChatServerUnIgnoreWhisper",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT | Input::GRP_GUI,
+ &Actions::serverUnIgnoreWhisper,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "serverunignore",
+ false},
};
#endif // INPUT_INPUTACTIONMAP_H