mirror of
https://github.com/znc/znc.git
synced 2026-05-02 19:42:32 +02:00
PutModule should try sending the line to all clients connected to the same network before the user clients
This commit is contained in:
13
Modules.cpp
13
Modules.cpp
@@ -567,15 +567,20 @@ unsigned int CModule::PutModule(const CTable& table) {
|
||||
return idx - 1;
|
||||
}
|
||||
bool CModule::PutModule(const CString& sLine) {
|
||||
if (!m_pUser)
|
||||
return false;
|
||||
|
||||
if (m_pClient) {
|
||||
m_pClient->PutModule(GetModName(), sLine);
|
||||
return true;
|
||||
}
|
||||
|
||||
return m_pUser->PutModule(GetModName(), sLine);
|
||||
if (m_pNetwork) {
|
||||
return m_pNetwork->PutModule(GetModName(), sLine);
|
||||
}
|
||||
|
||||
if (m_pUser) {
|
||||
return m_pUser->PutModule(GetModName(), sLine);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
bool CModule::PutModNotice(const CString& sLine) {
|
||||
if (!m_pUser)
|
||||
|
||||
Reference in New Issue
Block a user