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
+2 -12
View File
@@ -427,12 +427,7 @@ public:
Table.SetCell("Arguments", "<channel>");
Table.SetCell("Description", "Show which users can not part this channel");
unsigned int uTableIdx = 0;
CString sTmp;
while (Table.GetLine(uTableIdx++, sTmp)) {
PutModule(sTmp);
}
PutModule(Table);
} else if (sCommand.CaseCmp("LIST") == 0) {
if (!m_ssChannels.size()) {
PutModule("There are no open channels.");
@@ -451,12 +446,7 @@ public:
Table.SetCell("Users", CString((*a)->GetNicks().size()));
}
unsigned int uTableIdx = 0;
CString sTmp;
while (Table.GetLine(uTableIdx++, sTmp)) {
PutModule(sTmp);
}
PutModule(Table);
} else if (sCommand.CaseCmp("ADDFIXCHAN") == 0) {
if (!m_pUser->IsAdmin()) {
PutModule("Access denied");