Fix CClient::PutClient comment, add CClient::PutClientRaw

This commit is contained in:
Alexey Sokolov
2018-03-11 15:16:32 +00:00
parent 15ccaca41a
commit 8da45322f0
2 changed files with 24 additions and 9 deletions

View File

@@ -484,8 +484,7 @@ CString CClient::GetFullName() const {
}
void CClient::PutClient(const CString& sLine) {
CMessage Message(sLine);
PutClient(Message);
PutClient(CMessage(sLine));
}
bool CClient::PutClient(const CMessage& Message) {
@@ -581,7 +580,12 @@ bool CClient::PutClient(const CMessage& Message) {
&bReturn);
if (bReturn) return false;
CString sCopy = Msg.ToString();
return PutClientRaw(Msg.ToString());
}
bool CClient::PutClientRaw(const CString& sLine) {
CString sCopy = sLine;
bool bReturn = false;
NETWORKMODULECALL(OnSendToClient(sCopy, *this), m_pUser, m_pNetwork, this,
&bReturn);
if (bReturn) return false;