summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-07 21:52:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-07 21:52:58 +0000
commit0eaa401787b9f6e0738df706a69cd8e5423ecb59 (patch)
treebd2431f42ce4cdddf08cf619106103dae825fe75
parent3c75c89e3f79d419bf367b71fc1ac3b2ecb767f6 (diff)
Fixed makefile to show progress
Fixed m_setname.cpp compile error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@431 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/Makefile1
-rw-r--r--src/modules/m_setname.cpp4
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);
}