mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
Also strip controls from private messages
This commit is contained in:
@@ -685,6 +685,10 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
sMsg.RightChomp();
|
||||
|
||||
if (sTarget.Equals(GetNick())) {
|
||||
if (m_pNetwork->StripControls()) {
|
||||
sMsg.StripControls();
|
||||
}
|
||||
|
||||
if (OnCTCPReply(Nick, sMsg)) {
|
||||
return;
|
||||
}
|
||||
@@ -694,6 +698,10 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
return;
|
||||
} else {
|
||||
if (sTarget.Equals(GetNick())) {
|
||||
if (m_pNetwork->StripControls()) {
|
||||
sMsg.StripControls();
|
||||
}
|
||||
|
||||
if (OnPrivNotice(Nick, sMsg)) {
|
||||
return;
|
||||
}
|
||||
@@ -747,6 +755,10 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
sMsg.RightChomp();
|
||||
|
||||
if (sTarget.Equals(GetNick())) {
|
||||
if (m_pNetwork->StripControls()) {
|
||||
sMsg.StripControls();
|
||||
}
|
||||
|
||||
if (OnPrivCTCP(Nick, sMsg)) {
|
||||
return;
|
||||
}
|
||||
@@ -765,6 +777,10 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
return;
|
||||
} else {
|
||||
if (sTarget.Equals(GetNick())) {
|
||||
if (m_pNetwork->StripControls()) {
|
||||
sMsg.StripControls();
|
||||
}
|
||||
|
||||
if (OnPrivMsg(Nick, sMsg)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user