diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-09 20:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-09 20:30:47 +0300 |
commit | 407de0a8d0898b28a587962e997df816cb17b6a9 (patch) | |
tree | 99a0184bb44950a900a9f093afb8887bdd148548 /src/actions/commands.cpp | |
parent | 972fdcbd1ed61e2528c8b4c733f21a70d7f674b1 (diff) | |
download | plus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.gz plus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.bz2 plus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.xz plus-407de0a8d0898b28a587962e997df816cb17b6a9.zip |
Fix code style.
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(); |