From 407de0a8d0898b28a587962e997df816cb17b6a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Jun 2017 20:30:47 +0300 Subject: Fix code style. --- src/actions/chat.cpp | 5 ++++- src/actions/commands.cpp | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/actions') diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 40ff966be..e1f801c0b 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -300,8 +300,11 @@ impHandler(msg2) std::string recvnick; std::string message; - if ((chatHandler != nullptr) && splitWhisper(event.args, recvnick, message)) + if (chatHandler != nullptr && + splitWhisper(event.args, recvnick, message)) + { chatHandler->privateMessage(recvnick, message); + } return true; } 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(); -- cgit v1.2.3-70-g09d2