added new multi log system
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_access.c
index 7eaaea184cebd8b487c1422e27be7b8aeeba1805..ce84cd4b5d29300afc1c5e7f99c185286c6718f3 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_access.c - NeonServ v5.4
+/* cmd_neonserv_access.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -36,7 +36,7 @@ CMD_BIND(neonserv_cmd_access) {
         if(!(user->flags & USERFLAG_ISAUTHED)) {
             struct neonserv_cmd_access_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;
@@ -67,7 +67,7 @@ CMD_BIND(neonserv_cmd_access) {
         } else {
             struct neonserv_cmd_access_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;