diff options
-rw-r--r-- | src/modules/Makefile | 1 | ||||
-rw-r--r-- | src/modules/m_setname.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile index 75f6f6ab2..60629b59c 100644 --- a/src/modules/Makefile +++ b/src/modules/Makefile @@ -14,6 +14,7 @@ MODULES2 = $(MODS2:.cpp=.so) main: rm -f .make ; \ for i in $(MODULES) ; do \ + echo "echo \"Compiling: $$i\"" >>.make ; \ echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \ done ; chmod u+x .make ; ./.make 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); } |