summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 22:24:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 22:24:05 +0300
commit338fdcc49fbe3254946cbc37478cedd0f160d312 (patch)
treed01ae27265397e740e07abd26570eb37ca9e8c15 /src/actions/chat.cpp
parentd27b32b8754f8ba2e153e63c8978fcf4bd744faa (diff)
downloadplus-338fdcc49fbe3254946cbc37478cedd0f160d312.tar.gz
plus-338fdcc49fbe3254946cbc37478cedd0f160d312.tar.bz2
plus-338fdcc49fbe3254946cbc37478cedd0f160d312.tar.xz
plus-338fdcc49fbe3254946cbc37478cedd0f160d312.zip
Fix /party chat command.
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 374a586fb..3fc8b9728 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -342,18 +342,18 @@ impHandler(createGuild)
impHandler(party)
{
- if (!event.tab)
- return false;
-
if (!event.args.empty())
{
partyHandler->invite(event.args);
}
else
{
- // TRANSLATORS: party invite message
- event.tab->chatLog(_("Please specify a name."),
- ChatMsgType::BY_SERVER);
+ if (event.tab)
+ {
+ // TRANSLATORS: party invite message
+ event.tab->chatLog(_("Please specify a name."),
+ ChatMsgType::BY_SERVER);
+ }
}
return true;
}