]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_stats.cpp
m_testcommand deletes its command handler manually, no modules should do this. Will...
[user/henk/code/inspircd.git] / src / cmd_stats.cpp
index 9a0dc5ef7196bd41445f64fdaab4f0b401b81c12..98b2c63ddcf3d082fe53bf8be2db025e617a80e4 100644 (file)
 #include "configreader.h"
 #ifndef WIN32
 #include <sys/resource.h>
+
+/* This is just to be completely certain that the change which fixed getrusage on RH7 doesn't break anything else -- Om */
+#ifndef RUSAGE_SELF
+#define RUSAGE_SELF 0
+#endif
+
 #endif
 #include "users.h"
 #include "modules.h"
@@ -65,7 +71,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user,
                        {
                                std::string ip = ServerInstance->Config->ports[i]->GetIP();
                                if (ip.empty())
-                                       ip = "*";
+                                       ip.assign("*");
 
                                results.push_back(sn+" 249 "+user->nick+" :"+ ip + ":"+ConvToStr(ServerInstance->Config->ports[i]->GetPort())+" (client, " +
                                                ServerInstance->Config->ports[i]->GetDescription() + ")");