added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / event_neonserv_ctcp.c
index abb7d664098ac7ae2c1e03a8c32d86b9f4d0f304..200b80f584a2170c92c467416b62f00b6a652b54 100644 (file)
@@ -36,7 +36,7 @@ static void neonserv_event_chanctcp(struct UserNode *user, struct ChanNode *chan
     if(!(user->flags & USERFLAG_ISAUTHED)) {
         struct neonserv_event_ctcp_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;