Closed
Description
Adding an already existing channel to a user/network via web admin causes a crash if the channel name isn't prefixed with '#' (i.e you already have a channel '#potato' but you try to add 'potato' without the '#' prefix).
This only appears to happen if the channel is already in the list and not if you are adding a new channel that isn't already in the list.
Adding the following lines below "CString sChanName = WebSock.GetParam("name").Trim_n();" in modules/webadmin.cpp fixes this problem (although its probably not the best way of fixing it)
if(sChanName.substr(0, 1) != "#")
{
sChanName = "#" + sChanName;
}
Metadata
Metadata
Assignees
Labels
No labels