mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Allow wildcards in help command args
Supports the help command for *status, all modules that are using CModCommand as appropriate, and *controlpanel get/set variables.
This commit is contained in:
@@ -1549,7 +1549,7 @@ void CClient::UserPortCommand(CString& sLine) {
|
||||
static void AddCommandHelp(CTable& Table, const CString& sCmd, const CString& sArgs, const CString& sDesc, const CString& sFilter = "")
|
||||
{
|
||||
const CString::size_type iFilterLength = sFilter.size();
|
||||
if (sFilter.empty() || sCmd.Equals(sFilter, false, iFilterLength)) {
|
||||
if (sFilter.empty() || sCmd.Equals(sFilter, false, iFilterLength) || sCmd.AsLower().WildCmp(sFilter.AsLower())) {
|
||||
Table.AddRow();
|
||||
Table.SetCell("Command", sCmd);
|
||||
Table.SetCell("Arguments", sArgs);
|
||||
|
||||
Reference in New Issue
Block a user