added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_invite.c
index 22184abda22fcb89fb24bcf8a790c490c8074016..b9bce2855b8c626af6fa90f9b8f72d95944ea595 100644 (file)
@@ -72,7 +72,7 @@ CMD_BIND(neonserv_cmd_invite) {
     } else {
         struct neonserv_cmd_invite_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;
@@ -139,7 +139,7 @@ static TIMEQ_CALLBACK(neonserv_cmd_invite_timeout_timeout) {
 static struct neonserv_cmd_invite_timeout* neonserv_cmd_invite_add_timeout(char *nick, char *chan) {
     struct neonserv_cmd_invite_timeout *entry = malloc(sizeof(*entry));
     if (!entry) {
-        perror("malloc() failed");
+        printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
         return NULL;
     }
     entry->next = NULL;