mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Call CTCP callback for actions too, as it was before switch to CMessage.
Partyline had both of callbacks, one of which is redundant. Fix #1134 Fix #1190
This commit is contained in:
@@ -290,6 +290,8 @@ bool CIRCSock::OnActionMessage(CActionMessage& Message) {
|
||||
CChan* pChan = nullptr;
|
||||
CString sTarget = Message.GetTarget();
|
||||
if (sTarget.Equals(GetNick())) {
|
||||
IRCSOCKMODULECALL(OnPrivCTCPMessage(Message), &bResult);
|
||||
if (bResult) return true;
|
||||
IRCSOCKMODULECALL(OnPrivActionMessage(Message), &bResult);
|
||||
if (bResult) return true;
|
||||
|
||||
@@ -310,6 +312,8 @@ bool CIRCSock::OnActionMessage(CActionMessage& Message) {
|
||||
if (pChan) {
|
||||
Message.SetChan(pChan);
|
||||
FixupChanNick(Message.GetNick(), pChan);
|
||||
IRCSOCKMODULECALL(OnChanCTCPMessage(Message), &bResult);
|
||||
if (bResult) return true;
|
||||
IRCSOCKMODULECALL(OnChanActionMessage(Message), &bResult);
|
||||
if (bResult) return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user