added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_unvisited.c
index fc00afacc25c162b11d9af2397cb155c8b53fe22..5f1572e17ee823fc4075f1ce1f8359d064bf9768 100644 (file)
@@ -69,7 +69,7 @@ static void neonserv_check_unvisited(struct ClientSocket *client, struct ClientS
     struct ChanNode *channel;
     struct neonserv_cmd_unvisited_cache *cache = malloc(sizeof(*cache));
     if (!cache) {
-        perror("malloc() failed");
+        printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
         return;
     }
     cache->client = client;