mirror of
https://github.com/znc/znc.git
synced 2026-05-01 02:52:30 +02:00
Added support for buffering of /me actions
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@602 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
15
Client.cpp
15
Client.cpp
@@ -383,11 +383,20 @@ void CClient::ReadLine(const CString& sData) {
|
||||
return;
|
||||
}
|
||||
|
||||
CChan* pChan = m_pUser->FindChan(sTarget);
|
||||
|
||||
if (sCTCP.Token(0).CaseCmp("ACTION") == 0) {
|
||||
if (pChan && pChan->KeepBuffer()) {
|
||||
pChan->AddBuffer(":" + GetNickMask() + " PRIVMSG " + sTarget + " :\001" + sCTCP + "\001");
|
||||
}
|
||||
#ifdef _MODULES
|
||||
CZNC::Get().GetModules().SetClient(this);
|
||||
MODULECALLRET(OnUserCTCP(sTarget, sCTCP));
|
||||
CZNC::Get().GetModules().SetClient(NULL);
|
||||
} else {
|
||||
CZNC::Get().GetModules().SetClient(this);
|
||||
MODULECALLRET(OnUserCTCP(sTarget, sCTCP));
|
||||
CZNC::Get().GetModules().SetClient(NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
PutIRC("PRIVMSG " + sTarget + " :\001" + sCTCP + "\001");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user