summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp18
1 files changed, 18 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