diff options
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r-- | src/actions/chat.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 25ddb4e92..f8cb0731d 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -385,7 +385,7 @@ impHandler(party) impHandler(guild) { - if (!guildHandler || !event.tab || !localPlayer) + if (!guildHandler || !localPlayer) return false; const std::string args = event.args; @@ -406,9 +406,18 @@ impHandler(guild) } else { - // TRANSLATORS: guild invite message - event.tab->chatLog(_("Please specify a name."), - ChatMsgType::BY_SERVER); + if (event.tab) + { + // TRANSLATORS: guild invite message + event.tab->chatLog(_("Please specify a name."), + ChatMsgType::BY_SERVER); + } + else if (localChatTab) + { + // TRANSLATORS: guild invite message + localChatTab->chatLog(_("Please specify a name."), + ChatMsgType::BY_SERVER); + } } return true; } |