]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_stats.cpp
A ton more clear() and empty() stuff thats been lingering on the long term todo for...
[user/henk/code/inspircd.git] / src / modules / m_httpd_stats.cpp
index e800b3d98c54253dd5d190e59957699e2757cb4d..57b0a6e273d8ae7fcf7c418b62cfbc968ea1cdca 100644 (file)
  * ---------------------------------------------------
  */
 
-#include <stdio.h>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "configreader.h"
 #include "modules.h"
 #include "inspsocket.h"
 #include "httpd.h"
-#include "inspircd.h"
 
 /* $ModDesc: Provides statistics over HTTP via m_httpd.so */
 
@@ -114,7 +113,7 @@ class ModuleHttpStats : public Module
                                data << "<table>";
                                for (int i = 0; i <= ServerInstance->GetModuleCount(); i++)
                                {
-                                       if (ServerInstance->Config->module_names[i] != "")
+                                       if (!ServerInstance->Config->module_names[i].empty())
                                                data << "<tr><td>" << ServerInstance->Config->module_names[i] << "</td></tr>";
                                }
                                data << "</table>";