Skip to content

Crash while adding channels to the web admin #528

Closed
@RussellB28

Description

@RussellB28

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions