diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-24 21:38:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-24 21:38:45 +0300 |
commit | 4805bee18392b56f39be68b0d6a0384cbda0f846 (patch) | |
tree | 7ccbc3892df6665667361da56e3d3abbdd1bcc7a /src/actions | |
parent | 9522e88dbdb425211f68e94518dcfb63dc74f306 (diff) | |
download | mv-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.cpp | 7 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
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 |