]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Replace printf(_c) with iostream
[user/henk/code/inspircd.git] / src / configreader.cpp
index 660df77d7025b2065525b6c1cc4627fd6d145cd8..82f4d7c43a8e0267fd3122b8b2f3b42917771cf8 100644 (file)
@@ -28,6 +28,7 @@
 #include "exitcodes.h"
 #include "commands/cmd_whowas.h"
 #include "configparser.h"
+#include <iostream>
 #ifdef _WIN32
 #include <Iphlpapi.h>
 #pragma comment(lib, "Iphlpapi.lib")
@@ -750,7 +751,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
                        continue;
                // On startup, print out to console (still attached at this point)
                if (!old)
-                       printf("%s\n", line.c_str());
+                       std::cout << line << std::endl;
                // If a user is rehashing, tell them directly
                if (user)
                        user->SendText(":%s NOTICE %s :*** %s", ServerInstance->Config->ServerName.c_str(), user->nick.c_str(), line.c_str());