Merge pull request #754 from jpnurmi/ready

Add CClient::IsPlaybackActive()
This commit is contained in:
Alexey Sokolov
2014-12-04 21:56:13 +00:00
4 changed files with 19 additions and 0 deletions

View File

@@ -579,6 +579,8 @@ void CIRCNetwork::ClientConnected(CClient *pClient) {
size_t uIdx, uSize;
pClient->SetPlaybackActive(true);
if (m_RawBuffer.IsEmpty()) {
pClient->PutClient(":irc.znc.in 001 " + pClient->GetNick() + " :- Welcome to ZNC -");
} else {
@@ -657,6 +659,8 @@ void CIRCNetwork::ClientConnected(CClient *pClient) {
}
m_NoticeBuffer.Clear();
pClient->SetPlaybackActive(false);
// Tell them why they won't connect
if (!GetIRCConnectEnabled())
pClient->PutStatus("You are currently disconnected from IRC. "