summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-24 17:18:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-24 17:18:27 +0300
commitefa45459a4d79cf1adba3327f6dad02fc5aa55cd (patch)
treef9d6022981235006d34f6352bb13535ee7d72a56 /src/actions
parentf5651bc452096c8cd84d7c801228d64af3a165d2 (diff)
downloadplus-efa45459a4d79cf1adba3327f6dad02fc5aa55cd.tar.gz
plus-efa45459a4d79cf1adba3327f6dad02fc5aa55cd.tar.bz2
plus-efa45459a4d79cf1adba3327f6dad02fc5aa55cd.tar.xz
plus-efa45459a4d79cf1adba3327f6dad02fc5aa55cd.zip
Move chat command /friend 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 7e3d46446..0c029fa54 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -184,4 +184,11 @@ impHandler(chatUnignore)
return true;
}
+impHandler(chatFriend)
+{
+ // TRANSLATORS: adding friend command
+ changeRelation(event.args, PlayerRelation::FRIEND, _("friend"), event.tab);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index afc5e0dd9..6b554e5fe 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -30,6 +30,7 @@ namespace Actions
decHandler(chatAnnounce);
decHandler(chatIgnore);
decHandler(chatUnignore);
+ decHandler(chatFriend);
} // namespace Actions
#undef decHandler