From fdb451a908e5eb88948a9a40db1d594c4fedde52 Mon Sep 17 00:00:00 2001 From: silverleo Date: Mon, 29 Dec 2008 18:46:39 +0000 Subject: [PATCH] Show arguments used to load the module instead of the description in listmods. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1310 726aef4b-f618-498e-8847-2d620e286838 --- ClientCommand.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ClientCommand.cpp b/ClientCommand.cpp index 0d5c7cf9..c26c31bb 100644 --- a/ClientCommand.cpp +++ b/ClientCommand.cpp @@ -526,12 +526,12 @@ void CClient::UserCommand(const CString& sLine) { PutStatus("Global modules:"); CTable GTable; GTable.AddColumn("Name"); - GTable.AddColumn("Description"); + GTable.AddColumn("Arguments"); for (unsigned int b = 0; b < GModules.size(); b++) { GTable.AddRow(); GTable.SetCell("Name", GModules[b]->GetModName()); - GTable.SetCell("Description", GModules[b]->GetDescription().Ellipsize(128)); + GTable.SetCell("Arguments", GModules[b]->GetArgs()); } PutStatus(GTable); @@ -546,12 +546,12 @@ void CClient::UserCommand(const CString& sLine) { PutStatus("User modules:"); CTable Table; Table.AddColumn("Name"); - Table.AddColumn("Description"); + Table.AddColumn("Arguments"); for (unsigned int b = 0; b < Modules.size(); b++) { Table.AddRow(); Table.SetCell("Name", Modules[b]->GetModName()); - Table.SetCell("Description", Modules[b]->GetDescription().Ellipsize(128)); + Table.SetCell("Arguments", Modules[b]->GetArgs()); } PutStatus(Table);