mirror of
https://github.com/znc/znc.git
synced 2026-05-02 03:22:33 +02:00
Make CModule::PutModule use CUser::PutModule
This commit is contained in:
14
User.cpp
14
User.cpp
@@ -1104,6 +1104,20 @@ bool CUser::PutModule(const CString& sModule, const CString& sLine, CClient* pCl
|
||||
return (pClient == NULL);
|
||||
}
|
||||
|
||||
bool CUser::PutModNotice(const CString& sModule, const CString& sLine, CClient* pClient, CClient* pSkipClient) {
|
||||
for (unsigned int a = 0; a < m_vClients.size(); a++) {
|
||||
if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) {
|
||||
m_vClients[a]->PutModNotice(sModule, sLine);
|
||||
|
||||
if (pClient) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (pClient == NULL);
|
||||
}
|
||||
|
||||
bool CUser::ResumeFile(unsigned short uPort, unsigned long uFileSize) {
|
||||
CSockManager& Manager = CZNC::Get().GetManager();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user