summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-24 21:38:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-24 21:38:45 +0300
commit4805bee18392b56f39be68b0d6a0384cbda0f846 (patch)
tree7ccbc3892df6665667361da56e3d3abbdd1bcc7a /src/actions
parent9522e88dbdb425211f68e94518dcfb63dc74f306 (diff)
downloadmv-4805bee18392b56f39be68b0d6a0384cbda0f846.tar.gz
mv-4805bee18392b56f39be68b0d6a0384cbda0f846.tar.bz2
mv-4805bee18392b56f39be68b0d6a0384cbda0f846.tar.xz
mv-4805bee18392b56f39be68b0d6a0384cbda0f846.zip
Move chat command /enemy into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp7
-rw-r--r--src/actions/commands.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 79ca62973..5c16d17cc 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -212,4 +212,11 @@ impHandler(chatBlackList)
return true;
}
+impHandler(chatEnemy)
+{
+ // TRANSLATORS: enemy command
+ changeRelation(event.args, PlayerRelation::ENEMY2, _("enemy"), event.tab);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 9faa40b92..306c46cb9 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -34,6 +34,7 @@ namespace Actions
decHandler(chatDisregard);
decHandler(chatNeutral);
decHandler(chatBlackList);
+ decHandler(chatEnemy);
} // namespace Actions
#undef decHandler