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:
@@ -582,7 +582,11 @@ void CModule::HandleHelpCommand(const CString& sLine) {
|
||||
it->second.AddHelp(Table);
|
||||
}
|
||||
}
|
||||
PutModule(Table);
|
||||
if (Table.empty()) {
|
||||
PutModule("No matches for '" + sFilter + "'");
|
||||
} else {
|
||||
PutModule(Table);
|
||||
}
|
||||
}
|
||||
|
||||
CString CModule::GetModNick() const { return ((m_pUser) ? m_pUser->GetStatusPrefix() : "*") + m_sModName; }
|
||||
|
||||
Reference in New Issue
Block a user