Whenever a mode has a parameter, no modes past that mode will be shown
in RPL_CHANNELMODEIS.
References to items in a vector break when the vector's size is changed.
// the user is a member of the channel.
bool show_secret = chan->HasUser(user);
- std::string& modes = num.push("+").GetParams().back();
+ size_t modepos = num.push("+").GetParams().size() - 1;
+ std::string modes;
std::string param;
for (unsigned char chr = 65; chr < 123; ++chr)
{
num.push(param);
param.clear();
}
+ num.GetParams()[modepos].append(modes);
}
}