mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
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:
+2
-12
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user