Tell user about no help filter matches

It's confusing if misspelled command gives no reply at all.
This commit is contained in:
J-P Nurmi
2014-09-13 22:41:29 +02:00
parent 69e65ea45e
commit 2901225ff3
2 changed files with 10 additions and 2 deletions

View File

@@ -1652,5 +1652,9 @@ void CClient::HelpUser(const CString& sFilter) {
AddCommandHelp(Table, "Restart", "[message]", "Restart ZNC", sFilter);
}
PutStatus(Table);
if (Table.empty()) {
PutStatus("No matches for '" + sFilter + "'");
} else {
PutStatus(Table);
}
}