added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / event_neonserv_topic.c
index ec14c90655e57895c77c6004e64966d6881a22e3..3958f8308c69e71a39dd0eea09cdac7d02cbd975 100644 (file)
@@ -1,4 +1,4 @@
-/* event_neonserv_topic.c - NeonServ v5.5
+/* event_neonserv_topic.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -34,7 +34,7 @@ static void neonserv_event_topic(struct UserNode *user, struct ChanNode *chan, c
     if(!(user->flags & USERFLAG_ISAUTHED)) {
         struct neonserv_event_topic_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;