summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 23:16:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 23:16:19 +0300
commitc33d54dd45efd88f95014bd41813accb15e76f89 (patch)
treeec19b20b2f59bebde3afd4c6ef2920fff666b1a9 /src/input
parent81a7b06f2ff1fad4b012068b15975bdb5e86a0e4 (diff)
downloadmanaplus-c33d54dd45efd88f95014bd41813accb15e76f89.tar.gz
manaplus-c33d54dd45efd88f95014bd41813accb15e76f89.tar.bz2
manaplus-c33d54dd45efd88f95014bd41813accb15e76f89.tar.xz
manaplus-c33d54dd45efd88f95014bd41813accb15e76f89.zip
Move chat command /ignore into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h11
2 files changed, 11 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 36adc4759..1f59fc288 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -350,6 +350,7 @@ namespace InputAction
WHISPER,
QUERY,
CLEAR_CHAT_TAB,
+ IGNORE,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index b5498427d..fc0e26755 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -2919,7 +2919,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"clear",
- false}
+ false},
+ {"keyIgnore",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::chatIgnore,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "ignore",
+ true}
};
#endif // INPUT_INPUTACTIONMAP_H