Skip to content
Snippets Groups Projects
Commit 9c0109c6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix crash when a chat channel references an invalid chat action set

When there are no chat action sets or an action set has been deleted, bad
things would happen (e.g. segfault) when listing chat channels.
parent 63946042
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3200 failed
......@@ -324,7 +324,7 @@ void chan_cfg()
sprintf(opt[k++],"%-27.27s%s","Channel Guru"
,cfg.chan[i]->guru<cfg.total_gurus ? cfg.guru[cfg.chan[i]->guru]->name : "");
sprintf(opt[k++],"%-27.27s%s","Channel Action Set"
,cfg.actset[cfg.chan[i]->actset]->name);
,cfg.chan[i]->actset < cfg.total_actsets ? cfg.actset[cfg.chan[i]->actset]->name : "INVALID!");
opt[k][0]=0;
uifc.helpbuf=
"`Chat Channel Configuration:`\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment