Print a warning if a msg / notice gets lost because we are not connected to IRC

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1032 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-04-25 16:30:11 +00:00
parent c0a91af22e
commit c4f1eb3da3

View File

@@ -310,6 +310,12 @@ void CClient::ReadLine(const CString& sData) {
}
#endif
if (!m_pIRCSock) {
PutStatus("Your message to [" + sTarget + "] got lost, "
"you are not connected to IRC!");
return;
}
CChan* pChan = m_pUser->FindChan(sTarget);
if ((pChan) && (pChan->KeepBuffer())) {
@@ -532,6 +538,12 @@ void CClient::ReadLine(const CString& sData) {
MODULECALL(OnUserMsg(sTarget, sMsg), m_pUser, this, return);
#endif
if (!m_pIRCSock) {
PutStatus("Your message to [" + sTarget + "] got lost, "
"you are not connected to IRC!");
return;
}
CChan* pChan = m_pUser->FindChan(sTarget);
if ((pChan) && (pChan->KeepBuffer())) {