added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / event_neonserv_notice.c
index 408636ac5b11fcb1912f0a2f584d5701589dafd4..c15089a4ed3d6ce72a1a161c229202c8324239ad 100644 (file)
@@ -34,7 +34,7 @@ static void neonserv_event_channotice(struct UserNode *user, struct ChanNode *ch
     if(!(user->flags & USERFLAG_ISAUTHED)) {
         struct neonserv_event_notice_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;