Lie to modules less: make OnUserRaw strings raw

This commit is contained in:
Alexey Sokolov
2018-02-18 22:14:18 +00:00
parent 48df7c7fe2
commit 658a6e6f90
2 changed files with 0 additions and 8 deletions
-1
View File
@@ -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);
-7
View File
@@ -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,