mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +02:00
Lie to modules less: make OnUserRaw strings raw
This commit is contained in:
@@ -805,7 +805,6 @@ class CModule {
|
||||
|
||||
/** This module hook is called when a client sends a raw traffic line to ZNC.
|
||||
* @param sLine The raw traffic line sent.
|
||||
* @note The line does not include message tags. Use OnUserRawMessage() to access them.
|
||||
* @return See CModule::EModRet.
|
||||
*/
|
||||
virtual EModRet OnUserRaw(CString& sLine);
|
||||
|
||||
@@ -115,12 +115,6 @@ void CClient::ReadLine(const CString& sData) {
|
||||
DEBUG("(" << GetFullName() << ") CLI -> ZNC ["
|
||||
<< CDebug::Filter(sLine) << "]");
|
||||
|
||||
MCString mssTags;
|
||||
if (sLine.StartsWith("@")) {
|
||||
mssTags = CUtils::GetMessageTags(sLine);
|
||||
sLine = sLine.Token(1, true);
|
||||
}
|
||||
|
||||
bool bReturn = false;
|
||||
if (IsAttached()) {
|
||||
NETWORKMODULECALL(OnUserRaw(sLine), m_pUser, m_pNetwork, this,
|
||||
@@ -132,7 +126,6 @@ void CClient::ReadLine(const CString& sData) {
|
||||
|
||||
CMessage Message(sLine);
|
||||
Message.SetClient(this);
|
||||
Message.SetTags(mssTags);
|
||||
|
||||
if (IsAttached()) {
|
||||
NETWORKMODULECALL(OnUserRawMessage(Message), m_pUser, m_pNetwork, this,
|
||||
|
||||
Reference in New Issue
Block a user