From 9522e88dbdb425211f68e94518dcfb63dc74f306 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Aug 2014 21:32:16 +0300 Subject: Move chat command /blacklist into actions. --- src/actions/commands.cpp | 7 +++++++ src/actions/commands.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index aba86a87f..79ca62973 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -205,4 +205,11 @@ impHandler(chatNeutral) return true; } +impHandler(chatBlackList) +{ + // TRANSLATORS: blacklist command + changeRelation(event.args, PlayerRelation::BLACKLISTED, _("blacklisted"), event.tab); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 32a8155c7..9faa40b92 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -33,6 +33,7 @@ namespace Actions decHandler(chatFriend); decHandler(chatDisregard); decHandler(chatNeutral); + decHandler(chatBlackList); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2