mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Check we have a network before we try to get its modules (in /msg *status listavailmods)
This commit is contained in:
@@ -741,7 +741,7 @@ void CClient::UserCommand(CString& sLine) {
|
||||
for (it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) {
|
||||
const CModInfo& Info = *it;
|
||||
Table.AddRow();
|
||||
Table.SetCell("Name", (m_pNetwork->GetModules().FindModule(Info.GetName()) ? "*" : " ") + Info.GetName());
|
||||
Table.SetCell("Name", ((m_pNetwork && m_pNetwork->GetModules().FindModule(Info.GetName())) ? "*" : " ") + Info.GetName());
|
||||
Table.SetCell("Description", Info.GetDescription().Ellipsize(128));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user