Add PutIRC(CMessage) and PutIRCRaw()

Close #1193
This commit is contained in:
Alexey Sokolov
2018-03-11 16:43:16 +00:00
parent 8da45322f0
commit a8d2df3852
6 changed files with 118 additions and 23 deletions

View File

@@ -1376,6 +1376,17 @@ bool CIRCNetwork::PutIRC(const CString& sLine) {
return true;
}
bool CIRCNetwork::PutIRC(const CMessage& Message) {
CIRCSock* pIRCSock = GetIRCSock();
if (!pIRCSock) {
return false;
}
pIRCSock->PutIRC(Message);
return true;
}
void CIRCNetwork::ClearQueryBuffer() {
std::for_each(m_vQueries.begin(), m_vQueries.end(),
std::default_delete<CQuery>());