summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}