diff options
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r-- | src/actions/chat.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 58642db29..be6c88bbe 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -281,4 +281,21 @@ impHandler(createGuild) return true; } +impHandler(party) +{ + if (!event.tab) + return false; + + if (!event.args.empty()) + { + Net::getPartyHandler()->invite(event.args); + } + else + { + // TRANSLATORS: party invite message + event.tab->chatLog(_("Please specify a name."), ChatMsgType::BY_SERVER); + } + return true; +} + } // namespace Actions |