mirror of
https://github.com/znc/znc.git
synced 2026-06-30 23:11:28 +02:00
Ignore messages to ourself when being disconnected from IRC.
This suppresses "Your message to [yournick] got lost,..." messages when lagbars try to send notices to their own nick but ZNC is disconnected from IRC. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1211 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+8
-4
@@ -336,8 +336,10 @@ void CClient::ReadLine(const CString& sData) {
|
||||
#endif
|
||||
|
||||
if (!m_pIRCSock) {
|
||||
PutStatus("Your message to [" + sTarget + "] got lost, "
|
||||
"you are not connected to IRC!");
|
||||
// Some lagmeters do a NOTICE to their own nick, ignore those.
|
||||
if (sTarget.CaseCmp(m_sNick) != 0)
|
||||
PutStatus("Your notice to [" + sTarget + "] got lost, "
|
||||
"you are not connected to IRC!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -534,8 +536,10 @@ void CClient::ReadLine(const CString& sData) {
|
||||
MODULECALL(OnUserMsg(sTarget, sMsg), m_pUser, this, return);
|
||||
|
||||
if (!m_pIRCSock) {
|
||||
PutStatus("Your message to [" + sTarget + "] got lost, "
|
||||
"you are not connected to IRC!");
|
||||
// Some lagmeters do a PRIVMSG to their own nick, ignore those.
|
||||
if (sTarget.CaseCmp(m_sNick) != 0)
|
||||
PutStatus("Your message to [" + sTarget + "] got lost, "
|
||||
"you are not connected to IRC!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user