Use the new CModule::PutModule(const CTable&) in various modules

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1169 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-08-24 12:51:04 +00:00
parent b70a115a28
commit adcca250e1
7 changed files with 13 additions and 69 deletions
+4 -12
View File
@@ -265,12 +265,8 @@ public:
Table.SetCell("Port", CString(pSock->GetLocalPort()));
}
}
if (Table.size())
{
unsigned int uTableIdx = 0;
CString sLine;
while (Table.GetLine(uTableIdx++, sLine))
PutModule(sLine);
if (Table.size()) {
PutModule(Table);
} else
PutModule("No SDCCs currently in session");
@@ -342,12 +338,8 @@ public:
}
}
if (Table.size())
{
unsigned int uTableIdx = 0;
CString sLine;
while (Table.GetLine(uTableIdx++, sLine))
PutModule(sLine);
} else
PutModule(Table);
else
PutModule("Error Finding Sockets");
} else if (sCom.CaseCmp("help") == 0)