diff options
| author | 2010-04-16 16:03:32 -0500 | |
|---|---|---|
| committer | 2010-08-03 17:32:42 -0400 | |
| commit | bd722def02fa27e69939d71d00b0af12adaea1ca (patch) | |
| tree | 3e030fd91a5991e1213807907c059f6b54de7d48 /src/commands/cmd_user.cpp | |
| parent | Get rid of char* argument for channel name (diff) | |
Get rid of more useless assign() invocations
Diffstat (limited to 'src/commands/cmd_user.cpp')
| -rw-r--r-- | src/commands/cmd_user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_user.cpp b/src/commands/cmd_user.cpp index d27496ccc..0f34e9156 100644 --- a/src/commands/cmd_user.cpp +++ b/src/commands/cmd_user.cpp @@ -54,7 +54,7 @@ CmdResult CommandUser::HandleLocal(const std::vector<std::string>& parameters, L * ~ character, and +1 for null termination, therefore we can safely use up to * IDENTMAX here. */ - user->ChangeIdent(parameters[0].c_str()); + user->ident.assign(parameters[0], 0, ServerInstance->Config->Limits.IdentMax); user->fullname.assign(parameters[3].empty() ? std::string("No info") : parameters[3], 0, ServerInstance->Config->Limits.MaxGecos); user->registered = (user->registered | REG_USER); } |
