mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Merge pull request #754 from jpnurmi/ready
Add CClient::IsPlaybackActive()
This commit is contained in:
@@ -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. "
|
||||
|
||||
Reference in New Issue
Block a user