mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Tell user about no help filter matches
It's confusing if misspelled command gives no reply at all.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user