diff options
Diffstat (limited to 'src/modules/m_setname.cpp')
-rw-r--r-- | src/modules/m_setname.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp index 4ae8f5fae..9ce02b37c 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -20,13 +20,13 @@ Server *Srv; void handle_setname(char **parameters, int pcnt, userrec *user) { - std::string = ""; + std::string line = ""; for (int i = 0; i < pcnt-1; i++) { line = line + std::string(parameters[i]); } line = line + std::string(parameters[pcnt-1]); - strncpy(user->fullname,parameters[0],127); + strncpy(user->fullname,line.c_str(),127); } |