X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_user.cpp;h=b4d86f07bb9de33036b0ab788bbda0c78fbc07fe;hb=9d4efff3957f1ad163f726bc44bed3a4870afb94;hp=57aecc2f7a9ec917ab7bf7d11942564082560574;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_user.cpp b/src/commands/cmd_user.cpp index 57aecc2f7..b4d86f07b 100644 --- a/src/commands/cmd_user.cpp +++ b/src/commands/cmd_user.cpp @@ -45,7 +45,7 @@ CmdResult CommandUser::HandleLocal(const std::vector& parameters, L /* A user may only send the USER command once */ if (!(user->registered & REG_USER)) { - if (!ServerInstance->IsIdent(parameters[0].c_str())) + if (!ServerInstance->IsIdent(parameters[0])) { /* * RFC says we must use this numeric, so we do. Let's make it a little more nub friendly though. :) @@ -61,8 +61,8 @@ CmdResult CommandUser::HandleLocal(const std::vector& parameters, L * ~ character, and +1 for null termination, therefore we can safely use up to * IDENTMAX here. */ - user->ChangeIdent(parameters[0].c_str()); - user->fullname.assign(parameters[3].empty() ? std::string("No info") : parameters[3], 0, ServerInstance->Config->Limits.MaxGecos); + user->ChangeIdent(parameters[0]); + user->fullname.assign(parameters[3].empty() ? "No info" : parameters[3], 0, ServerInstance->Config->Limits.MaxGecos); user->registered = (user->registered | REG_USER); } }