diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 00c8b9a5c..eb10e8a77 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -101,19 +101,19 @@ static void changeRelation(const InputEvent &event, const PlayerRelation::Relation relation, const std::string &relationText) { - if (!event.tab) - return; - std::string args = getNick(event); if (args.empty()) return; if (player_relations.getRelation(args) == relation) { - // TRANSLATORS: change relation - event.tab->chatLog(strprintf(_("Player already %s!"), - relationText.c_str()), ChatMsgType::BY_SERVER); - return; + if (event.tab) + { + // TRANSLATORS: change relation + event.tab->chatLog(strprintf(_("Player already %s!"), + relationText.c_str()), ChatMsgType::BY_SERVER); + return; + } } else { |