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:
psychon
2008-09-28 12:05:49 +00:00
parent d6c34d2441
commit fd92e65b70
4 changed files with 24 additions and 106 deletions

View File

@@ -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; }