Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
Reported by s7r
  • Loading branch information
DarthGandalf committed Jun 25, 2017
1 parent ae97985 commit 0ce6b7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.cpp
Expand Up @@ -888,13 +888,13 @@ void CClient::AddBuffer(const T& Message) {
}

void CClient::EchoMessage(const CMessage& Message) {
CMessage EchoedMessage = Message;
for (CClient* pClient : GetClients()) {
if (pClient->HasEchoMessage() ||
(pClient != this && (m_pNetwork->IsChan(Message.GetParam(0)) ||
pClient->HasSelfMessage()))) {
CMessage EchoMessage(Message);
EchoMessage.SetNick(GetNickMask());
pClient->PutClient(EchoMessage);
EchoedMessage.SetNick(GetNickMask());
pClient->PutClient(EchoedMessage);
}
}
}
Expand Down

0 comments on commit 0ce6b7c

Please sign in to comment.