summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-24 17:14:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-24 17:14:07 +0300
commitf5651bc452096c8cd84d7c801228d64af3a165d2 (patch)
treeafc3a673675dbae99b30e5c61be6bf713cb70395 /src/commands.cpp
parentc33d54dd45efd88f95014bd41813accb15e76f89 (diff)
downloadplus-f5651bc452096c8cd84d7c801228d64af3a165d2.tar.gz
plus-f5651bc452096c8cd84d7c801228d64af3a165d2.tar.bz2
plus-f5651bc452096c8cd84d7c801228d64af3a165d2.tar.xz
plus-f5651bc452096c8cd84d7c801228d64af3a165d2.zip
Move chat command /unignore into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index b4a18aaf2..a4a531f36 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -405,51 +405,6 @@ impHandler(neutral)
return true;
}
-impHandler(unignore)
-{
- if (event.args.empty())
- {
- if (event.tab)
- {
- // TRANSLATORS: unignore command
- event.tab->chatLog(_("Please specify a name."), ChatMsgType::BY_SERVER);
- }
- return true;
- }
-
- const PlayerRelation::Relation rel = player_relations.getRelation(event.args);
- if (rel != PlayerRelation::NEUTRAL && rel != PlayerRelation::FRIEND)
- {
- player_relations.setRelation(event.args, PlayerRelation::NEUTRAL);
- }
- else
- {
- if (event.tab)
- {
- // TRANSLATORS: unignore command
- event.tab->chatLog(_("Player wasn't ignored!"), ChatMsgType::BY_SERVER);
- }
- return true;
- }
-
- if (event.tab)
- {
- if (player_relations.getRelation(event.args) == PlayerRelation::NEUTRAL)
- {
- // TRANSLATORS: unignore command
- event.tab->chatLog(_("Player no longer ignored!"),
- ChatMsgType::BY_SERVER);
- }
- else
- {
- // TRANSLATORS: unignore command
- event.tab->chatLog(_("Player could not be unignored!"),
- ChatMsgType::BY_SERVER);
- }
- }
- return true;
-}
-
impHandler(blackList)
{
// TRANSLATORS: blacklist command