summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
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