mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add CClient::PutStatus(const CTable&) and use it everywhere
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1222 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
18
Modules.cpp
18
Modules.cpp
@@ -333,14 +333,7 @@ void CModule::ListTimers() {
|
||||
Table.SetCell("Description", pTimer->GetDescription());
|
||||
}
|
||||
|
||||
if (Table.size()) {
|
||||
unsigned int uTableIdx = 0;
|
||||
CString sLine;
|
||||
|
||||
while (Table.GetLine(uTableIdx++, sLine)) {
|
||||
PutModule(sLine);
|
||||
}
|
||||
}
|
||||
PutModule(Table);
|
||||
}
|
||||
|
||||
bool CModule::AddSocket(CSocket* pSocket) {
|
||||
@@ -432,14 +425,7 @@ void CModule::ListSockets() {
|
||||
Table.SetCell("RemotePort", (pSocket->GetRemotePort()) ? CString(pSocket->GetRemotePort()) : CString(""));
|
||||
}
|
||||
|
||||
if (Table.size()) {
|
||||
unsigned int uTableIdx = 0;
|
||||
CString sLine;
|
||||
|
||||
while (Table.GetLine(uTableIdx++, sLine)) {
|
||||
PutModule(sLine);
|
||||
}
|
||||
}
|
||||
PutModule(Table);
|
||||
}
|
||||
|
||||
CString CModule::GetModNick() const { return ((m_pUser) ? m_pUser->GetStatusPrefix() : "*") + m_sModName; }
|
||||
|
||||
Reference in New Issue
Block a user