From 1ceb3b90a9a00cae73cecb2b81ca3b6bd043f816 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Aug 2014 17:59:08 +0300 Subject: Move chat command /disregard 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 0c029fa54..c63e8a439 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -191,4 +191,11 @@ impHandler(chatFriend) return true; } +impHandler(chatDisregard) +{ + // TRANSLATORS: disregard command + changeRelation(event.args, PlayerRelation::DISREGARDED, _("disregarded"), event.tab); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 6b554e5fe..356b0d7e2 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -31,6 +31,7 @@ namespace Actions decHandler(chatIgnore); decHandler(chatUnignore); decHandler(chatFriend); + decHandler(chatDisregard); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2