Check we have a network before we try to get its modules (in /msg *status listavailmods)

This commit is contained in:
Kyle Fuller
2011-09-05 17:29:06 +00:00
parent 12d1a5a422
commit 8945fbeb48

View File

@@ -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));
}