Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix code style in Chan.cpp

  • Loading branch information...
commit 425b6da77035f85a405509075174c0a2435496bc 1 parent f604709
Alexey Sokolov authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 Chan.cpp
View
12 Chan.cpp
@@ -545,9 +545,9 @@ void CChan::SendBuffer(CClient* pClient) {
// in the event that pClient is NULL, need to send this to all clients for the user
// I'm presuming here that pClient is listed inside vClients thus vClients at this
- // point can't be empty.
+ // point can't be empty.
//
- // This loop has to be cycled twice to maintain the existing behavior which is
+ // This loop has to be cycled twice to maintain the existing behavior which is
// 1. OnChanBufferStarting
// 2. OnChanBufferPlayLine
// 3. ClearBuffer() if not keeping the buffer
@@ -559,7 +559,7 @@ void CChan::SendBuffer(CClient* pClient) {
// Rework this if you like ...
if (vsBuffer.size()) {
const vector<CClient*> & vClients = m_pNetwork->GetClients();
- for( size_t uClient = 0; uClient < vClients.size(); ++uClient ) {
+ for (size_t uClient = 0; uClient < vClients.size(); ++uClient) {
CClient * pUseClient = ( pClient ? pClient : vClients[uClient] );
bool bSkipStatusMsg = false;
@@ -575,7 +575,7 @@ void CChan::SendBuffer(CClient* pClient) {
m_pNetwork->PutUser(sLine, pUseClient);
}
- if( pClient )
+ if (pClient)
break;
}
@@ -584,7 +584,7 @@ void CChan::SendBuffer(CClient* pClient) {
ClearBuffer();
}
- for( size_t uClient = 0; uClient < vClients.size(); ++uClient ) {
+ for ( size_t uClient = 0; uClient < vClients.size(); ++uClient) {
CClient * pUseClient = ( pClient ? pClient : vClients[uClient] );
bool bSkipStatusMsg = false;
@@ -594,7 +594,7 @@ void CChan::SendBuffer(CClient* pClient) {
m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + GetName() + " :Playback Complete.", pUseClient);
}
- if( pClient )
+ if (pClient)
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.