Commit 60d340be authored by louiz’'s avatar louiz’

TIL std::string::end and std::string::begin…

parent 2380a84b
......@@ -264,8 +264,7 @@ void ConfigureIrcServerStep2(XmppComponent*, AdhocSession& session, XmlNode& com
{
auto username = value->get_inner();
// The username must not contain spaces
std::replace(&username[0], &username[username.size() - 1],
' ', '_');
std::replace(username.begin(), username.end(), ' ', '_');
options.username = username;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment