mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
12
Client.cpp
12
Client.cpp
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user