From 2e80e56af1255822ac5741d8354e2a4e003d8e8d Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 21 Aug 2014 19:17:40 -0400 Subject: [PATCH] Fix dangling else statements --- ucs/clientlist.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ucs/clientlist.cpp b/ucs/clientlist.cpp index c2b887ff0..aa019a2cc 100644 --- a/ucs/clientlist.cpp +++ b/ucs/clientlist.cpp @@ -1329,7 +1329,7 @@ void Client::SendChannelMessage(std::string Message) } } - if(RequiredChannel) + if(RequiredChannel) { if(RuleB(Chat, EnableAntiSpam)) { if(!RequiredChannel->IsModerated() || RequiredChannel->HasVoice(GetName()) || RequiredChannel->IsOwner(GetName()) || @@ -1384,7 +1384,7 @@ void Client::SendChannelMessage(std::string Message) else GeneralChannelMessage("Channel " + ChannelName + " is moderated and you have not been granted a voice."); } - + } } void Client::SendChannelMessageByNumber(std::string Message) { @@ -1883,11 +1883,12 @@ void Client::ChannelModerate(std::string CommandString) { RequiredChannel->SetModerated(!RequiredChannel->IsModerated()); - if(!RequiredChannel->IsClientInChannel(this)) - if(RequiredChannel->IsModerated()) + if (!RequiredChannel->IsClientInChannel(this)) { + if (RequiredChannel->IsModerated()) GeneralChannelMessage("Channel " + ChannelName + " is now moderated."); else GeneralChannelMessage("Channel " + ChannelName + " is no longer moderated."); + } }