TIL std::string::end and std::string::begin…
This commit is contained in:
@@ -264,8 +264,7 @@ void ConfigureIrcServerStep2(XmppComponent*, AdhocSession& session, XmlNode& com
|
|||||||
{
|
{
|
||||||
auto username = value->get_inner();
|
auto username = value->get_inner();
|
||||||
// The username must not contain spaces
|
// The username must not contain spaces
|
||||||
std::replace(&username[0], &username[username.size() - 1],
|
std::replace(username.begin(), username.end(), ' ', '_');
|
||||||
' ', '_');
|
|
||||||
options.username = username;
|
options.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user