diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index bad59ec29..f22d7bc93 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -577,15 +577,14 @@ impHandler(sendMail) impHandler(info) { - if ((event.tab == nullptr) || - (localPlayer == nullptr) || + if (event.tab == nullptr || + localPlayer == nullptr || Net::getNetworkType() == ServerType::TMWATHENA) { return false; } - if ((event.tab != nullptr) && - (guildHandler != nullptr) && + if (guildHandler != nullptr && event.tab->getType() == ChatTabType::GUILD) { const Guild *const guild = localPlayer->getGuild(); |