summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-14 12:52:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-14 12:52:50 +0300
commitb76970dadf4c973180644a2b150729f071ef579a (patch)
treefbb5b6ed9a5ae29a7733fa3f2affdcdccb078589 /src/actions
parent69348d6158802801a626938d5ced85807fd514d8 (diff)
downloadmanaverse-b76970dadf4c973180644a2b150729f071ef579a.tar.gz
manaverse-b76970dadf4c973180644a2b150729f071ef579a.tar.bz2
manaverse-b76970dadf4c973180644a2b150729f071ef579a.tar.xz
manaverse-b76970dadf4c973180644a2b150729f071ef579a.zip
Add chat command for kick player from party.
New chat command: /kickparty NAME Alias: /partykick NAME
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/chat.cpp18
-rw-r--r--src/actions/chat.h1
2 files changed, 19 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 3fc8b9728..8c5a8ebb4 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -432,4 +432,22 @@ impHandler(toggle)
}
}
+impHandler(kickParty)
+{
+ if (!event.args.empty())
+ {
+ partyHandler->kick(event.args);
+ }
+ else
+ {
+ if (event.tab)
+ {
+ // TRANSLATORS: party kick message
+ event.tab->chatLog(_("Please specify a name."),
+ ChatMsgType::BY_SERVER);
+ }
+ }
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/chat.h b/src/actions/chat.h
index c42e4940b..3171d4118 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -46,6 +46,7 @@ namespace Actions
decHandler(guild);
decHandler(me);
decHandler(toggle);
+ decHandler(kickParty);
} // namespace Actions
#undef decHandler