added new multi log system
[NeonServV5.git] / src / modules / NeonSpam.mod / event_neonspam_join.c
index cea710a234dda50cdfe8d1af2ad10f7bf2127f35..f34b1a387f89917f41e3274393465cca047d33f8 100644 (file)
@@ -1,4 +1,4 @@
-/* event_neonspam_join.c - NeonServ v5.5
+/* event_neonspam_join.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -46,7 +46,7 @@ static void neonspam_event_join(struct ChanUser *chanuser) {
         } else {
             struct neonspam_event_join_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("neonspam", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;